diff options
author | Sebastien Revol | 2016-05-10 16:22:01 +0000 |
---|---|---|
committer | jeremie.tatibouet | 2016-05-11 11:23:51 +0000 |
commit | e7f3774b07a8c1e7257a2c236fab7d09f95c0ba5 (patch) | |
tree | 0d5b653fa1c5ef002446c93768b5741eb6c3f6fa | |
parent | 7b62629aa847fdfce0754b54589a87541f06007c (diff) | |
download | org.eclipse.papyrus-moka-e7f3774b07a8c1e7257a2c236fab7d09f95c0ba5.tar.gz org.eclipse.papyrus-moka-e7f3774b07a8c1e7257a2c236fab7d09f95c0ba5.tar.xz org.eclipse.papyrus-moka-e7f3774b07a8c1e7257a2c236fab7d09f95c0ba5.zip |
Set ref.getEditor parameter to false to avoid invalid thread access
Change-Id: I4b8fa5f2f5f8c7922d8e10997be6452854731246
Signed-off-by: Sebastien Revol <sebastien.revol@cea.fr>
-rw-r--r-- | bundles/core/tools/org.eclipse.papyrus.moka.utils/src/org/eclipse/papyrus/moka/utils/helper/EditorUtils.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/core/tools/org.eclipse.papyrus.moka.utils/src/org/eclipse/papyrus/moka/utils/helper/EditorUtils.java b/bundles/core/tools/org.eclipse.papyrus.moka.utils/src/org/eclipse/papyrus/moka/utils/helper/EditorUtils.java index d8327c32..b8cac5b7 100644 --- a/bundles/core/tools/org.eclipse.papyrus.moka.utils/src/org/eclipse/papyrus/moka/utils/helper/EditorUtils.java +++ b/bundles/core/tools/org.eclipse.papyrus.moka.utils/src/org/eclipse/papyrus/moka/utils/helper/EditorUtils.java @@ -79,7 +79,7 @@ public class EditorUtils { IEditorReference[] editorReferences = pages[j].getEditorReferences(); for (int k = 0; k < editorReferences.length && part == null; k++) { IEditorReference ref = editorReferences[k]; - IEditorPart cdd = ref.getEditor(true); + IEditorPart cdd = ref.getEditor(false); if (cdd instanceof IMultiDiagramEditor) { String cddName = cdd.getEditorInput().getName(); if (cddName.equals(resourceName)) { |