-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