Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQuentin Le Menez2016-09-16 11:27:36 -0400
committerGerrit Code Review @ Eclipse.org2016-10-26 10:45:21 -0400
commit74d6c21749853db12d3cd5c3e1d16ab08528847a (patch)
treeaf72fb62c638ad4aaf236648ec9dc4612de72673 /plugins
parent0bbc83cfb3afc97b76b075f54577edff7d938a30 (diff)
downloadorg.eclipse.papyrus-74d6c21749853db12d3cd5c3e1d16ab08528847a.tar.gz
org.eclipse.papyrus-74d6c21749853db12d3cd5c3e1d16ab08528847a.tar.xz
org.eclipse.papyrus-74d6c21749853db12d3cd5c3e1d16ab08528847a.zip
Bug 465308 - [Refactoring] A refactoring tool should be made available
- Ammend the generator file to add a check on the current thread to avoid invalid thread exceptions - removed the amended modelExplorer class as this was done by a recently pushed gerrit Change-Id: I0afc88d77369735d25f75315328234e6e0fb44ec Signed-off-by: Quentin Le Menez <quentin.lemenez@cea.fr>
Diffstat (limited to 'plugins')
-rw-r--r--plugins/developer/org.eclipse.papyrus.def/xtend/aspects/xpt/editor/Editor.xtend12
1 files changed, 11 insertions, 1 deletions
diff --git a/plugins/developer/org.eclipse.papyrus.def/xtend/aspects/xpt/editor/Editor.xtend b/plugins/developer/org.eclipse.papyrus.def/xtend/aspects/xpt/editor/Editor.xtend
index 590c26f7440..c0bb0c15205 100644
--- a/plugins/developer/org.eclipse.papyrus.def/xtend/aspects/xpt/editor/Editor.xtend
+++ b/plugins/developer/org.eclipse.papyrus.def/xtend/aspects/xpt/editor/Editor.xtend
@@ -384,7 +384,17 @@ def configureDiagramEditDomain (GenEditorView it)'''
«overrideI(it.editorGen.diagram)»
public void commandStackChanged(java.util.EventObject event) {
- firePropertyChange( org.eclipse.ui.IEditorPart.PROP_DIRTY);
+ if (Display.getCurrent() == null) {
+ Display.getDefault().asyncExec(new Runnable() {
+
+ @Override
+ public void run() {
+ firePropertyChange(org.eclipse.ui.IEditorPart.PROP_DIRTY);
+ }
+ });
+ } else {
+ firePropertyChange(org.eclipse.ui.IEditorPart.PROP_DIRTY);
+ }
}
});
}

Back to the top