Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastien Revol2016-05-10 16:22:01 +0000
committerjeremie.tatibouet2016-05-11 11:23:51 +0000
commite7f3774b07a8c1e7257a2c236fab7d09f95c0ba5 (patch)
tree0d5b653fa1c5ef002446c93768b5741eb6c3f6fa
parent7b62629aa847fdfce0754b54589a87541f06007c (diff)
downloadorg.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.java2
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)) {

Back to the top