Author: scabanovich
Date: 2012-01-13 16:53:05 -0500 (Fri, 13 Jan 2012)
New Revision: 37835
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/widgets/xpl/SelectableFormLabel.java
Log:
JBIDE-10576
https://issues.joss.org/browse/JBIDE-10576
In selectable edit check for existance is added, as in new cases we open not new editor,
but change selection in the same editor, so that current form is disposed to be replaced
by that for new selection.
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/widgets/xpl/SelectableFormLabel.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/widgets/xpl/SelectableFormLabel.java 2012-01-13
19:49:34 UTC (rev 37834)
+++
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/widgets/xpl/SelectableFormLabel.java 2012-01-13
21:53:05 UTC (rev 37835)
@@ -101,7 +101,9 @@
if (hasFocus) {
hasFocus=false;
notifyListeners(SWT.Selection);
- redraw();
+ if(!SelectableFormLabel.this.isDisposed()) {
+ redraw();
+ }
}
}
});