Issue #3031 - Added dispose check in the runAsync calls.

Change-Id: I7996f58995aa261a1a66acc755768c3489130d43

Former-commit-id: 72f2908000301dd025a2c801b1ab129460d8cdf9
This commit is contained in:
Lee Venable 2014-04-15 16:40:08 -05:00
parent ec96b9a261
commit 2122b79416

View file

@ -102,6 +102,7 @@ import com.raytheon.viz.ui.dialogs.CaveSWTDialog;
* 29Jan2013 1496 rferrel Changes to designator hours query
* off the UI thread.
* Changes to have multiple query jobs.
* 15Apr2014 #3031 lvenable Added dispose check in the runAsync calls.
* </pre>
*
* @author lvenable
@ -1606,6 +1607,9 @@ public class AfosBrowserDlg extends CaveSWTDialog implements
@Override
public void run() {
if (isDisposed()) {
return;
}
startDesignatorTimeList();
}
});
@ -1657,6 +1661,9 @@ public class AfosBrowserDlg extends CaveSWTDialog implements
@Override
public void run() {
if (isDisposed()) {
return;
}
for (TimesRequest result : resultList) {
if (canceled) {
break;
@ -1690,6 +1697,9 @@ public class AfosBrowserDlg extends CaveSWTDialog implements
@Override
public void run() {
if (isDisposed()) {
return;
}
finishDesignatorTimeList();
}
});