]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/SCLDiagramTemplate.java
Red background color & tooltip for invalid derived property expression
[simantics/platform.git] / bundles / org.simantics.modeling.ui / src / org / simantics / modeling / ui / SCLDiagramTemplate.java
index 387a20b0c99208554304691bb2e09f18f48d5fd7..b6cdcae225fcf2c2486e11fce4ecd27739b692bc 100644 (file)
@@ -1,26 +1,26 @@
-package org.simantics.modeling.ui;\r
-\r
-import org.simantics.db.ReadGraph;\r
-import org.simantics.db.exception.DatabaseException;\r
-import org.simantics.db.layer0.variable.Variable;\r
-import org.simantics.diagram.function.PredefinedVariables;\r
-import org.simantics.scenegraph.loader.ScenegraphLoaderUtils;\r
-\r
-public class SCLDiagramTemplate {\r
-\r
-    public static Variable templateDiagram(ReadGraph graph, Variable self) throws DatabaseException {\r
-        Variable selection = ScenegraphLoaderUtils.getVariableSelection(graph, self);\r
-        return PredefinedVariables.getInstance().getPredefinedVariable(graph, selection, "diagram");\r
-    }\r
-\r
-    public static Variable templateComposite(ReadGraph graph, Variable self) throws DatabaseException {\r
-        Variable selection = ScenegraphLoaderUtils.getVariableSelection(graph, self);\r
-       return PredefinedVariables.getInstance().getPredefinedVariable(graph, selection, "diagramComposite");\r
-    }\r
-\r
-    public static Variable templateModel(ReadGraph graph, Variable self) throws DatabaseException {\r
-        Variable selection = ScenegraphLoaderUtils.getVariableSelection(graph, self);\r
-       return PredefinedVariables.getInstance().getPredefinedVariable(graph, selection, "model");\r
-    }\r
-\r
+package org.simantics.modeling.ui;
+
+import org.simantics.db.ReadGraph;
+import org.simantics.db.exception.DatabaseException;
+import org.simantics.db.layer0.variable.Variable;
+import org.simantics.diagram.function.PredefinedVariables;
+import org.simantics.scenegraph.loader.ScenegraphLoaderUtils;
+
+public class SCLDiagramTemplate {
+
+    public static Variable templateDiagram(ReadGraph graph, Variable self) throws DatabaseException {
+        Variable selection = ScenegraphLoaderUtils.getVariableSelection(graph, self);
+        return PredefinedVariables.getInstance().getPredefinedVariable(graph, selection, "diagram"); //$NON-NLS-1$
+    }
+
+    public static Variable templateComposite(ReadGraph graph, Variable self) throws DatabaseException {
+        Variable selection = ScenegraphLoaderUtils.getVariableSelection(graph, self);
+       return PredefinedVariables.getInstance().getPredefinedVariable(graph, selection, "diagramComposite"); //$NON-NLS-1$
+    }
+
+    public static Variable templateModel(ReadGraph graph, Variable self) throws DatabaseException {
+        Variable selection = ScenegraphLoaderUtils.getVariableSelection(graph, self);
+       return PredefinedVariables.getInstance().getPredefinedVariable(graph, selection, "model"); //$NON-NLS-1$
+    }
+
 }
\ No newline at end of file