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
|
@ -70,6 +70,7 @@ import com.raytheon.viz.ui.dialogs.CaveSWTDialog;
|
|||
* 23 Feb 2010 4303 mpduff Changed the "missing" date display to be N/A.
|
||||
* 16 Apr 2013 1790 rferrel Make dialog non-blocking.
|
||||
* 09 Sep 2013 #2349 lvenable Fixed Font memory leak.
|
||||
* Mar 31, 2014 #2970 lvenable Put dispose checks in the runAsync calls.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -877,9 +878,11 @@ public class StationReportingStatusDlg extends CaveSWTDialog {
|
|||
|
||||
if (currObs.isEmpty()) {
|
||||
VizApp.runAsync(new Runnable() {
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
if (isDisposed()) {
|
||||
return;
|
||||
}
|
||||
setBusy(false);
|
||||
String showErrorMsg = "No latest obs found. ";
|
||||
MessageBox mb = new MessageBox(shell,
|
||||
|
@ -892,9 +895,11 @@ public class StationReportingStatusDlg extends CaveSWTDialog {
|
|||
} else {
|
||||
latestObs = currObs;
|
||||
VizApp.runAsync(new Runnable() {
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
if (isDisposed()) {
|
||||
return;
|
||||
}
|
||||
loadRecords();
|
||||
}
|
||||
});
|
||||
|
|
|
@ -74,6 +74,7 @@ import com.raytheon.viz.ui.dialogs.CaveSWTDialog;
|
|||
* Sep 4, 2008 lvenable Initial creation
|
||||
* Dec 11, 2008 1787 askripsk Connect to DB
|
||||
* Apr 18, 2013 1790 rferrel Make dialog non-blocking.
|
||||
* Mar 31, 2014 #2970 lvenable Put dispose checks in the runAsync calls.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -1015,6 +1016,9 @@ public class DataIngestFilterDlg extends CaveSWTDialog {
|
|||
|
||||
@Override
|
||||
public void run() {
|
||||
if (isDisposed()) {
|
||||
return;
|
||||
}
|
||||
updatePopulateList(t);
|
||||
}
|
||||
});
|
||||
|
|
|
@ -68,6 +68,7 @@ import com.raytheon.viz.ui.dialogs.CaveSWTDialog;
|
|||
* Dec 17, 2008 1787 askripsk Connected to Database.
|
||||
* May 6, 2009 2181 mpduff Keep selection upon submit.
|
||||
* Apr 18, 2013 1790 rferrel Make dialog non-blocking.
|
||||
* Mar 31, 2014 #2970 lvenable Put dispose checks in the runAsync calls.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -513,6 +514,9 @@ public class DataPurgeParamsDlg extends CaveSWTDialog {
|
|||
VizApp.runAsync(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
if (isDisposed()) {
|
||||
return;
|
||||
}
|
||||
updateLocDialogDisplay();
|
||||
}
|
||||
});
|
||||
|
@ -523,6 +527,9 @@ public class DataPurgeParamsDlg extends CaveSWTDialog {
|
|||
VizApp.runAsync(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
if (isDisposed()) {
|
||||
return;
|
||||
}
|
||||
setBusy(false);
|
||||
}
|
||||
});
|
||||
|
@ -551,6 +558,9 @@ public class DataPurgeParamsDlg extends CaveSWTDialog {
|
|||
|
||||
@Override
|
||||
public void run() {
|
||||
if (isDisposed()) {
|
||||
return;
|
||||
}
|
||||
updateTextDialogDisplay();
|
||||
}
|
||||
});
|
||||
|
@ -561,6 +571,9 @@ public class DataPurgeParamsDlg extends CaveSWTDialog {
|
|||
VizApp.runAsync(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
if (isDisposed()) {
|
||||
return;
|
||||
}
|
||||
setBusy(false);
|
||||
}
|
||||
});
|
||||
|
|
|
@ -66,6 +66,7 @@ import com.raytheon.viz.ui.dialogs.CaveSWTDialog;
|
|||
* Sep 4, 2008 lvenable Initial creation
|
||||
* Dec 29, 2008 1802 askripsk Connect to database.
|
||||
* Apr 19, 2013 1790 rferrel Make dialog non-blocking.
|
||||
* Mar 31, 2014 #2970 lvenable Put dispose checks in the runAsync calls.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -371,6 +372,9 @@ public class HydroGenConfigDlg extends CaveSWTDialog {
|
|||
|
||||
@Override
|
||||
public void run() {
|
||||
if (isDisposed()) {
|
||||
return;
|
||||
}
|
||||
updateDialogDisplay();
|
||||
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
|
||||
* elements matches the selection of default limits
|
||||
* Apr 19, 2013 1790 rferrel Make dialog non-blocking.
|
||||
* Mar 31, 2014 #2970 lvenable Put dispose checks in the runAsync calls.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -835,6 +836,9 @@ public class QcAlertAlarmLimitsDlg extends CaveSWTDialog {
|
|||
|
||||
@Override
|
||||
public void run() {
|
||||
if (isDisposed()) {
|
||||
return;
|
||||
}
|
||||
for (String currPE : peList) {
|
||||
physElemList.add(currPE);
|
||||
physElemSelItemList.add(currPE);
|
||||
|
@ -850,6 +854,9 @@ public class QcAlertAlarmLimitsDlg extends CaveSWTDialog {
|
|||
|
||||
@Override
|
||||
public void run() {
|
||||
if (isDisposed()) {
|
||||
return;
|
||||
}
|
||||
durationCbo.setItems(durList.toArray(new String[0]));
|
||||
updateDialogState(DialogStates.DEFAULT_LIMITS);
|
||||
loadData();
|
||||
|
@ -864,6 +871,9 @@ public class QcAlertAlarmLimitsDlg extends CaveSWTDialog {
|
|||
|
||||
@Override
|
||||
public void run() {
|
||||
if (isDisposed()) {
|
||||
return;
|
||||
}
|
||||
setBusy(false);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue