Issue #2970 - added SWT dispose checks to runAsync methods.

Former-commit-id: bd8d4feea2 [formerly 91c1cc0e2a] [formerly 64f5da88ff] [formerly bd8d4feea2 [formerly 91c1cc0e2a] [formerly 64f5da88ff] [formerly 4714913a8c [formerly 64f5da88ff [formerly b07ebb73405c3421c6afa3e45db57162a7ca622b]]]]
Former-commit-id: 4714913a8c
Former-commit-id: 2cea1633be [formerly b95ff2aa5c] [formerly 399d430b6568ed3139d21a7f38ca7481ea493a92 [formerly 198785dc0c]]
Former-commit-id: 7927179f7a36deb8cf780601cf1f82e254b59140 [formerly a6f051fe39]
Former-commit-id: fa8e70f496
This commit is contained in:
Lee Venable 2014-03-31 16:05:09 -05:00
parent ef58a05e3f
commit 420f016ce3
5 changed files with 39 additions and 3 deletions

View file

@ -69,7 +69,8 @@ import com.raytheon.viz.ui.dialogs.CaveSWTDialog;
* 21 Feb 2010 2915 mpduff Fixed Time Zone problem.
* 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.
* 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();
}
});

View file

@ -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);
}
});

View file

@ -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);
}
});

View file

@ -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);
}

View file

@ -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);
}
});