]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/diagram/style/DocumentDecorationStyle.java
Externalize strings
[simantics/platform.git] / bundles / org.simantics.modeling.ui / src / org / simantics / modeling / ui / diagram / style / DocumentDecorationStyle.java
index bb626c8641259959d11fbd94c7a832a6303e5c92..6e4d57b29c384dddc782c764f647e75b073a58fb 100644 (file)
@@ -39,7 +39,7 @@ import org.simantics.utils.datastructures.map.Tuple;
  */
 public class DocumentDecorationStyle extends StyleBase<DocumentResult> {
 
-    private static final String DECORATION_NODE_NAME = "documentDecorations";
+    private static final String DECORATION_NODE_NAME = "documentDecorations"; //$NON-NLS-1$
 
     private Set<Resource> getContexts(ReadGraph graph, Resource element) throws DatabaseException {
 
@@ -72,11 +72,11 @@ public class DocumentDecorationStyle extends StyleBase<DocumentResult> {
     @Override
     public void applyStyleForNode(EvaluationContext observer, INode node, DocumentResult result) {
         if (result == null) {
-            ProfileVariables.denyChild(node, "", DECORATION_NODE_NAME);
+            ProfileVariables.denyChild(node, "", DECORATION_NODE_NAME); //$NON-NLS-1$
             return;
         }
 
-        SVGNode svgNode = ProfileVariables.claimChild(node, "", DECORATION_NODE_NAME, DecorationSVGNode.class, observer);
+        SVGNode svgNode = ProfileVariables.claimChild(node, "", DECORATION_NODE_NAME, DecorationSVGNode.class, observer); //$NON-NLS-1$
 
         Rectangle2D bounds = NodeUtil.getLocalBounds(node, Decoration.class);
 
@@ -92,12 +92,12 @@ public class DocumentDecorationStyle extends StyleBase<DocumentResult> {
 
     @Override
     protected void cleanupStyleForNode(INode node) {
-        ProfileVariables.denyChild(node, "", DECORATION_NODE_NAME);
+        ProfileVariables.denyChild(node, "", DECORATION_NODE_NAME); //$NON-NLS-1$
     }
 
     @Override
     public String toString() {
-        return "Document decoration";
+        return "Document decoration"; //$NON-NLS-1$
     }
 
 }