Merge "Issue #3037 - Add dispose check in runAsync call." into development
Former-commit-id:8ad4b26151
[formerly b44bb9043a002e0749f6bcda41158a56d047c5af] Former-commit-id:70d132c59a
This commit is contained in:
commit
82267f8b0b
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