Merge "Issue #3060 safety checks for SWT widgets being disposed" into development

Former-commit-id: 1067e4b09c [formerly c193eac6e8 [formerly 0f33d8dfe65574db7cfbf37f7fc34393707538d3]]
Former-commit-id: c193eac6e8
Former-commit-id: 547bcafdb6
This commit is contained in:
Nate Jensen 2014-04-23 14:24:33 -05:00 committed by Gerrit Code Review
commit 4232c6b1b2

View file

@ -51,7 +51,8 @@ import com.raytheon.viz.ui.panes.VizDisplayPane;
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* Jun 7, 2012 mschenke Initial creation
* Jun 07, 2012 mschenke Initial creation
* Apr 23, 2014 3060 njensen Safety checks for SWT widgets disposed
*
* </pre>
*
@ -179,11 +180,14 @@ public class CollaborationPaneManager extends PaneManager {
setExclude(activeData, true);
activeData = null;
}
noDisplayLabel.setVisible(true);
((GridData) noDisplayLabel.getLayoutData()).exclude = false;
composite.layout();
if (!noDisplayLabel.isDisposed() && !composite.isDisposed()) {
noDisplayLabel.setVisible(true);
((GridData) noDisplayLabel.getLayoutData()).exclude = false;
composite.layout();
}
}
@Override
protected void adjustPaneLayout(int paneCount) {
;// don't do anything, we always want one pane displayed.
}