X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.modeling.ui%2Fsrc%2Forg%2Fsimantics%2Fmodeling%2Fui%2FcomponentTypeEditor%2FSCLEditorBase.java;h=e5bfc8f44e66d2b44d2a667ca632e29e6b5eade7;hp=b080c0b1c7607d4c2aff1f6c6c9ae97f2bc05046;hb=47269fe0acb894f346810417d950a1ab59cdc0ea;hpb=11309f6516278203264b680235cbbe1dc2bde98e diff --git a/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/componentTypeEditor/SCLEditorBase.java b/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/componentTypeEditor/SCLEditorBase.java index b080c0b1c..e5bfc8f44 100644 --- a/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/componentTypeEditor/SCLEditorBase.java +++ b/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/componentTypeEditor/SCLEditorBase.java @@ -124,7 +124,7 @@ public class SCLEditorBase extends EditorPart implements IExecutableExtension { public void perform(WriteGraph graph) throws DatabaseException { graph.markUndoPoint(); save(graph, inputResource, originalText); - Layer0Utils.addCommentMetadata(graph, "Saved SCL Module " + graph.getRelatedValue2(inputResource, Layer0.getInstance(graph).HasName, Bindings.STRING)); + Layer0Utils.addCommentMetadata(graph, "Saved SCL Module " + graph.getRelatedValue2(inputResource, Layer0.getInstance(graph).HasName, Bindings.STRING)); //$NON-NLS-1$ } }); } catch (DatabaseException e) { @@ -140,8 +140,8 @@ public class SCLEditorBase extends EditorPart implements IExecutableExtension { Layer0 L0 = Layer0.getInstance(graph); Resource parent = graph.getPossibleObject(inputResource, L0.PropertyOf); if(parent == null) - return "No parent"; - return graph.getPossibleRelatedValue(parent, L0.HasName) + " (Code)"; + return "No parent"; //$NON-NLS-1$ + return graph.getPossibleRelatedValue(parent, L0.HasName) + " (Code)"; //$NON-NLS-1$ } @Override