Issue #3034 - added widget dispose checks in runAsync methods.

Change-Id: I9182441c34c63c5a78023adda2ec036f2a51192e
(cherry picked from commit 5400c9bc5f35ed3547b5d51cae3d0cf0f0829b51 [formerly ff3b42468f] [formerly 27b5524848 [formerly f4fb7b24f6] [formerly 7f068f164c] [formerly 27b5524848 [formerly f4fb7b24f6] [formerly 7f068f164c] [formerly ff3b42468f [formerly 7f068f164c [formerly 8e8e65ecbc22dcebb7a494ddbd6b7183d67981a0]]]]])

Former-commit-id: 40f2d76190 [formerly 10249c98f1] [formerly 5a5bab45ae] [formerly 40f2d76190 [formerly 10249c98f1] [formerly 5a5bab45ae] [formerly 05a17c05a8 [formerly 5a5bab45ae [formerly 553877dba98909270e492e090290b66bdb2fcc55]]]]
Former-commit-id: 05a17c05a8
Former-commit-id: 96f300b216 [formerly 38131e5b90] [formerly 998c759171953c721ce9737cfffbb460c16ba867 [formerly 1e2816e4ec]]
Former-commit-id: 99ddf8ba1e74c480b68d5fab8628e417c3e92a55 [formerly 75ed3bcf24]
Former-commit-id: 28423d7071
This commit is contained in:
Lee Venable 2014-04-16 13:14:03 -05:00 committed by Steve Harris
parent d09eb87110
commit 498ad82ad8

View file

@ -77,6 +77,8 @@ import com.raytheon.viz.ui.dialogs.CaveSWTDialog;
* Aug 06, 2013 2222 rferrel Changes to display all selected data. * Aug 06, 2013 2222 rferrel Changes to display all selected data.
* Nov 14, 2013 2549 rferrel Get category data moved off the UI thread. * Nov 14, 2013 2549 rferrel Get category data moved off the UI thread.
* Dec 11, 2013 2624 rferrel No longer clear table prior to populating. * Dec 11, 2013 2624 rferrel No longer clear table prior to populating.
* Apr 15, 2014 3034 lvenable Added dispose checks in runAsync calls.
*
* </pre> * </pre>
* *
* @author bgonzale * @author bgonzale
@ -509,6 +511,11 @@ public abstract class AbstractArchiveDlg extends CaveSWTDialog implements
@Override @Override
public void run() { public void run() {
// If the dialog has been disposed then return.
if (isDisposed()) {
return;
}
try { try {
if (displayDatas != null) { if (displayDatas != null) {
tableComp.populateTable(archiveName, categoryName, tableComp.populateTable(archiveName, categoryName,
@ -676,6 +683,11 @@ public abstract class AbstractArchiveDlg extends CaveSWTDialog implements
@Override @Override
public void run() { public void run() {
// If the dialog has been disposed then return.
if (isDisposed()) {
return;
}
tableComp.updateSize(myDisplayDatas); tableComp.updateSize(myDisplayDatas);
updateTotals(null); updateTotals(null);
} }