Change-Id: I8e3ea28f814ecc7b28182bc47f5f4fde18fb7b3e
MOD.SymbolCodeStyle : DIA.Style
MOD.SymbolCodeStyle : DIA.Style
-MOD.IssueDecorationStyle : DIA.Style
\ No newline at end of file
+MOD.IssueDecorationStyle : DIA.Style
+
+MOD.PreferredDiagramEditorID <R L0.HasProperty : L0.FunctionalRelation
+ L0.HasDomain STR.Composite
+ L0.HasRange L0.String
\ No newline at end of file
super("Open Diagram Containing Referenced Component", Activator.COMPOSITE_ICON);
}
super("Open Diagram Containing Referenced Component", Activator.COMPOSITE_ICON);
}
- protected String getEditorId() {
- return EDITOR_ID;
+ protected String getEditorId(ReadGraph g, Resource diagram) throws DatabaseException {
+ ModelingResources MOD = ModelingResources.getInstance(g);
+ String preferredEditorId = g.getPossibleRelatedValue(diagram, MOD.PreferredDiagramEditorID);
+ if(preferredEditorId != null)
+ return preferredEditorId;
+ else
+ return EDITOR_ID;
public void run(ReadGraph g) throws DatabaseException {
Pair<Resource, Collection<Object>> data = extractContext(g, input);
if (data != null)
public void run(ReadGraph g) throws DatabaseException {
Pair<Resource, Collection<Object>> 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);