From: Hannu Niemistö Date: Sun, 27 Aug 2017 09:03:37 +0000 (+0300) Subject: (refs #7452) Added PreferredDiagramEditorID to Modeling.graph X-Git-Tag: v1.31.0~217 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=0cf894be3bd64a393d8883b7500822275c2a15fe;p=simantics%2Fplatform.git (refs #7452) Added PreferredDiagramEditorID to Modeling.graph Change-Id: I8e3ea28f814ecc7b28182bc47f5f4fde18fb7b3e --- 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); } }); }