From 0cf894be3bd64a393d8883b7500822275c2a15fe Mon Sep 17 00:00:00 2001 From: =?utf8?q?Hannu=20Niemist=C3=B6?= Date: Sun, 27 Aug 2017 12:03:37 +0300 Subject: [PATCH] (refs #7452) Added PreferredDiagramEditorID to Modeling.graph Change-Id: I8e3ea28f814ecc7b28182bc47f5f4fde18fb7b3e --- .../graph/Modeling.pgraph | 6 +++++- .../ui/diagramEditor/OpenDiagramFromIssue.java | 11 ++++++++--- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/bundles/org.simantics.modeling.ontology/graph/Modeling.pgraph b/bundles/org.simantics.modeling.ontology/graph/Modeling.pgraph index fe566684d..f337ab602 100644 --- a/bundles/org.simantics.modeling.ontology/graph/Modeling.pgraph +++ b/bundles/org.simantics.modeling.ontology/graph/Modeling.pgraph @@ -517,4 +517,8 @@ MOD.SVGTabContribution : SEL.SCLTabContribution MOD.SymbolCodeStyle : DIA.Style -MOD.IssueDecorationStyle : DIA.Style \ No newline at end of file +MOD.IssueDecorationStyle : DIA.Style + +MOD.PreferredDiagramEditorID > data = extractContext(g, input); if (data != null) - OpenDiagramFromConfigurationAdapter.openEditor(g, data.first, getEditorId(), data.second); + OpenDiagramFromConfigurationAdapter.openEditor(g, data.first, getEditorId(g, data.first), data.second); } }); } -- 2.47.1