X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.modeling.ui%2Fsrc%2Forg%2Fsimantics%2Fmodeling%2Fui%2FcomponentTypeEditor%2FComponentTypeViewer.java;h=75c60d24cd28d27190c382fba285def14f1f46a6;hb=1b2114e1f1cbae2f85ae396ef37a3199aaf67a3c;hp=7d256ba00e2dca5941e632a990105b02daee3d1d;hpb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/componentTypeEditor/ComponentTypeViewer.java b/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/componentTypeEditor/ComponentTypeViewer.java index 7d256ba00..75c60d24c 100644 --- a/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/componentTypeEditor/ComponentTypeViewer.java +++ b/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/componentTypeEditor/ComponentTypeViewer.java @@ -185,22 +185,22 @@ public class ComponentTypeViewer { String type = graph.getPossibleRelatedValue(relation, L0.RequiresValueType); String label = graph.getPossibleRelatedValue(relation, L0.HasLabel); if (label == null) - label = ""; + label = ""; //$NON-NLS-1$ String description = graph.getPossibleRelatedValue(relation, L0.HasDescription); if (description == null) - description = ""; + description = ""; //$NON-NLS-1$ NumberType numberType = null; if(type == null) - type = "Double"; + type = "Double"; //$NON-NLS-1$ String unit = graph.getPossibleRelatedValue(relation, L0X.HasUnit, Bindings.STRING); - String defaultValue = "0"; + String defaultValue = "0"; //$NON-NLS-1$ String expression = null; for(Resource assertion : graph.getAssertedObjects(data.componentType, relation)) { try { expression = graph.getPossibleRelatedValue(assertion, L0.SCLValue_expression, Bindings.STRING); if(expression != null) { - defaultValue = "=" + expression; + defaultValue = "=" + expression; //$NON-NLS-1$ } else { Datatype dt = getPossibleDatatype(graph, assertion); if (dt == null) @@ -306,9 +306,9 @@ public class ComponentTypeViewer { section.setReadOnly(readOnly); IMessageManager mm = data.form.getMessageManager(); if (readOnly) - mm.addMessage("readonly", "(Opened in read-only mode)", null, IMessageProvider.INFORMATION); + mm.addMessage("readonly", Messages.ComponentTypeViewer_OpenedInReadOnly, null, IMessageProvider.INFORMATION); //$NON-NLS-1$ else - mm.removeMessage("readonly"); + mm.removeMessage("readonly"); //$NON-NLS-1$ } }