Issue #3037 - Add dispose check in runAsync call.
Change-Id: I13c7475f8c56f677f3dbdfab8d6000061db86f9f Former-commit-id:6b0468f07e
[formerly33fc376f33
] [formerly7386d4b318
[formerly c511ef6d5566f0e1d9ae3d5ea886abbf1159d41a]] Former-commit-id:7386d4b318
Former-commit-id:98e9912a94
This commit is contained in:
parent
bed7035a67
commit
cc6380ba33
1 changed files with 10 additions and 2 deletions
|
@ -90,6 +90,7 @@ import com.raytheon.viz.ui.editor.IMultiPaneEditor;
|
|||
* Jan 15, 2014 2313 bsteffen Disable color map selection when
|
||||
* ColorMapCapability is not present.
|
||||
* Apr 08, 2014 2905 bsteffen Add option to interpolate colors.
|
||||
* Apr 16, 2014 3037 lvenable Add dispose check in runAsync call.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -812,7 +813,8 @@ public class ImagingDialog extends CaveSWTDialog implements
|
|||
|
||||
contrastText.setText(contrastScale.getSelection() + "%");
|
||||
|
||||
interpolateImageCheckbox.setSelection(imgCap.isInterpolationState());
|
||||
interpolateImageCheckbox
|
||||
.setSelection(imgCap.isInterpolationState());
|
||||
} else {
|
||||
topColorMapButton.setText("Top image is not displayed.");
|
||||
topColormapComp.getCMapButton().setText("Not Selected");
|
||||
|
@ -936,7 +938,8 @@ public class ImagingDialog extends CaveSWTDialog implements
|
|||
((GridData) alphaLabel.getLayoutData()).exclude = true;
|
||||
}
|
||||
|
||||
interpolateImageCheckbox.setSelection(imgCap.isInterpolationState());
|
||||
interpolateImageCheckbox
|
||||
.setSelection(imgCap.isInterpolationState());
|
||||
} else {
|
||||
brightnessText.setVisible(false);
|
||||
contrastText.setVisible(false);
|
||||
|
@ -967,6 +970,11 @@ public class ImagingDialog extends CaveSWTDialog implements
|
|||
VizApp.runAsync(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
// If the dialog has been disposed then return.
|
||||
if (isDisposed()) {
|
||||
return;
|
||||
}
|
||||
|
||||
refreshComponents();
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue