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%2Fdiagram%2Fstyle%2FDocumentDecorationStyle.java;h=6e4d57b29c384dddc782c764f647e75b073a58fb;hp=bb626c8641259959d11fbd94c7a832a6303e5c92;hb=47269fe0acb894f346810417d950a1ab59cdc0ea;hpb=11309f6516278203264b680235cbbe1dc2bde98e diff --git a/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/diagram/style/DocumentDecorationStyle.java b/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/diagram/style/DocumentDecorationStyle.java index bb626c864..6e4d57b29 100644 --- a/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/diagram/style/DocumentDecorationStyle.java +++ b/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/diagram/style/DocumentDecorationStyle.java @@ -39,7 +39,7 @@ import org.simantics.utils.datastructures.map.Tuple; */ public class DocumentDecorationStyle extends StyleBase { - private static final String DECORATION_NODE_NAME = "documentDecorations"; + private static final String DECORATION_NODE_NAME = "documentDecorations"; //$NON-NLS-1$ private Set getContexts(ReadGraph graph, Resource element) throws DatabaseException { @@ -72,11 +72,11 @@ public class DocumentDecorationStyle extends StyleBase { @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 { @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$ } }