Issue #2970 - added SWT dispose checks to runAsync methods.
Former-commit-id:64f5da88ff
[formerly64f5da88ff
[formerly b07ebb73405c3421c6afa3e45db57162a7ca622b]] Former-commit-id:4714913a8c
Former-commit-id:198785dc0c
This commit is contained in:
parent
a007cb795c
commit
a6f051fe39
5 changed files with 39 additions and 3 deletions
|
@ -69,7 +69,8 @@ import com.raytheon.viz.ui.dialogs.CaveSWTDialog;
|
||||||
* 21 Feb 2010 2915 mpduff Fixed Time Zone problem.
|
* 21 Feb 2010 2915 mpduff Fixed Time Zone problem.
|
||||||
* 23 Feb 2010 4303 mpduff Changed the "missing" date display to be N/A.
|
* 23 Feb 2010 4303 mpduff Changed the "missing" date display to be N/A.
|
||||||
* 16 Apr 2013 1790 rferrel Make dialog non-blocking.
|
* 16 Apr 2013 1790 rferrel Make dialog non-blocking.
|
||||||
* 09 Sep 2013 #2349 lvenable Fixed Font memory leak.
|
* 09 Sep 2013 #2349 lvenable Fixed Font memory leak.
|
||||||
|
* Mar 31, 2014 #2970 lvenable Put dispose checks in the runAsync calls.
|
||||||
*
|
*
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
|
@ -877,9 +878,11 @@ public class StationReportingStatusDlg extends CaveSWTDialog {
|
||||||
|
|
||||||
if (currObs.isEmpty()) {
|
if (currObs.isEmpty()) {
|
||||||
VizApp.runAsync(new Runnable() {
|
VizApp.runAsync(new Runnable() {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
if (isDisposed()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
setBusy(false);
|
setBusy(false);
|
||||||
String showErrorMsg = "No latest obs found. ";
|
String showErrorMsg = "No latest obs found. ";
|
||||||
MessageBox mb = new MessageBox(shell,
|
MessageBox mb = new MessageBox(shell,
|
||||||
|
@ -892,9 +895,11 @@ public class StationReportingStatusDlg extends CaveSWTDialog {
|
||||||
} else {
|
} else {
|
||||||
latestObs = currObs;
|
latestObs = currObs;
|
||||||
VizApp.runAsync(new Runnable() {
|
VizApp.runAsync(new Runnable() {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
if (isDisposed()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
loadRecords();
|
loadRecords();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -74,6 +74,7 @@ import com.raytheon.viz.ui.dialogs.CaveSWTDialog;
|
||||||
* Sep 4, 2008 lvenable Initial creation
|
* Sep 4, 2008 lvenable Initial creation
|
||||||
* Dec 11, 2008 1787 askripsk Connect to DB
|
* Dec 11, 2008 1787 askripsk Connect to DB
|
||||||
* Apr 18, 2013 1790 rferrel Make dialog non-blocking.
|
* Apr 18, 2013 1790 rferrel Make dialog non-blocking.
|
||||||
|
* Mar 31, 2014 #2970 lvenable Put dispose checks in the runAsync calls.
|
||||||
*
|
*
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
|
@ -1015,6 +1016,9 @@ public class DataIngestFilterDlg extends CaveSWTDialog {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
if (isDisposed()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
updatePopulateList(t);
|
updatePopulateList(t);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -68,6 +68,7 @@ import com.raytheon.viz.ui.dialogs.CaveSWTDialog;
|
||||||
* Dec 17, 2008 1787 askripsk Connected to Database.
|
* Dec 17, 2008 1787 askripsk Connected to Database.
|
||||||
* May 6, 2009 2181 mpduff Keep selection upon submit.
|
* May 6, 2009 2181 mpduff Keep selection upon submit.
|
||||||
* Apr 18, 2013 1790 rferrel Make dialog non-blocking.
|
* Apr 18, 2013 1790 rferrel Make dialog non-blocking.
|
||||||
|
* Mar 31, 2014 #2970 lvenable Put dispose checks in the runAsync calls.
|
||||||
*
|
*
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
|
@ -513,6 +514,9 @@ public class DataPurgeParamsDlg extends CaveSWTDialog {
|
||||||
VizApp.runAsync(new Runnable() {
|
VizApp.runAsync(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
if (isDisposed()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
updateLocDialogDisplay();
|
updateLocDialogDisplay();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -523,6 +527,9 @@ public class DataPurgeParamsDlg extends CaveSWTDialog {
|
||||||
VizApp.runAsync(new Runnable() {
|
VizApp.runAsync(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
if (isDisposed()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
setBusy(false);
|
setBusy(false);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -551,6 +558,9 @@ public class DataPurgeParamsDlg extends CaveSWTDialog {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
if (isDisposed()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
updateTextDialogDisplay();
|
updateTextDialogDisplay();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -561,6 +571,9 @@ public class DataPurgeParamsDlg extends CaveSWTDialog {
|
||||||
VizApp.runAsync(new Runnable() {
|
VizApp.runAsync(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
if (isDisposed()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
setBusy(false);
|
setBusy(false);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -66,6 +66,7 @@ import com.raytheon.viz.ui.dialogs.CaveSWTDialog;
|
||||||
* Sep 4, 2008 lvenable Initial creation
|
* Sep 4, 2008 lvenable Initial creation
|
||||||
* Dec 29, 2008 1802 askripsk Connect to database.
|
* Dec 29, 2008 1802 askripsk Connect to database.
|
||||||
* Apr 19, 2013 1790 rferrel Make dialog non-blocking.
|
* Apr 19, 2013 1790 rferrel Make dialog non-blocking.
|
||||||
|
* Mar 31, 2014 #2970 lvenable Put dispose checks in the runAsync calls.
|
||||||
*
|
*
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
|
@ -371,6 +372,9 @@ public class HydroGenConfigDlg extends CaveSWTDialog {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
if (isDisposed()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
updateDialogDisplay();
|
updateDialogDisplay();
|
||||||
shell.setCursor(null);
|
shell.setCursor(null);
|
||||||
}
|
}
|
||||||
|
|
|
@ -81,6 +81,7 @@ import com.raytheon.viz.ui.dialogs.CaveSWTDialog;
|
||||||
* Oct 27,2011 11305 lbousaidi change some logic to have physical
|
* Oct 27,2011 11305 lbousaidi change some logic to have physical
|
||||||
* elements matches the selection of default limits
|
* elements matches the selection of default limits
|
||||||
* Apr 19, 2013 1790 rferrel Make dialog non-blocking.
|
* Apr 19, 2013 1790 rferrel Make dialog non-blocking.
|
||||||
|
* Mar 31, 2014 #2970 lvenable Put dispose checks in the runAsync calls.
|
||||||
*
|
*
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
|
@ -835,6 +836,9 @@ public class QcAlertAlarmLimitsDlg extends CaveSWTDialog {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
if (isDisposed()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
for (String currPE : peList) {
|
for (String currPE : peList) {
|
||||||
physElemList.add(currPE);
|
physElemList.add(currPE);
|
||||||
physElemSelItemList.add(currPE);
|
physElemSelItemList.add(currPE);
|
||||||
|
@ -850,6 +854,9 @@ public class QcAlertAlarmLimitsDlg extends CaveSWTDialog {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
if (isDisposed()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
durationCbo.setItems(durList.toArray(new String[0]));
|
durationCbo.setItems(durList.toArray(new String[0]));
|
||||||
updateDialogState(DialogStates.DEFAULT_LIMITS);
|
updateDialogState(DialogStates.DEFAULT_LIMITS);
|
||||||
loadData();
|
loadData();
|
||||||
|
@ -864,6 +871,9 @@ public class QcAlertAlarmLimitsDlg extends CaveSWTDialog {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
if (isDisposed()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
setBusy(false);
|
setBusy(false);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue