]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.views.swt/src/org/simantics/views/swt/loader/TextLoader.java.keep
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.views.swt / src / org / simantics / views / swt / loader / TextLoader.java.keep
index 07e9a76498087ce5be9489fa62d3115d65957f78..01417152b9b74ab65e1857061bdf28cf34bac392 100644 (file)
@@ -1,39 +1,39 @@
-package org.simantics.views.swt.loader;\r
-\r
-import org.simantics.datatypes.literal.Font;\r
-import org.simantics.datatypes.literal.RGB;\r
-import org.simantics.db.Resource;\r
-import org.simantics.db.exception.DatabaseException;\r
-import org.simantics.db.layer0.variable.Variable;\r
-import org.simantics.scenegraph.ParentNode;\r
-import org.simantics.scenegraph.loader.ScenegraphLoader;\r
-import org.simantics.views.ontology.ViewsResources;\r
-import org.simantics.views.swt.client.base.ISWTViewNode;\r
-import org.simantics.views.swt.client.impl.SWTText;\r
-\r
-public class TextLoader implements ScenegraphLoader {\r
-\r
-       final private Resource configuration;\r
-       \r
-       public TextLoader(Resource configuration) {\r
-               this.configuration = configuration;\r
-       }\r
-       \r
-       @Override\r
-       public ISWTViewNode create(ParentNode<ISWTViewNode> parent, Variable context) throws DatabaseException {\r
-               \r
-               SWTText node = parent.addNode(SWTText.class);\r
-               \r
-               node.setLayoutData(LoaderUtils.getGridData(configuration));\r
-               node.setStyle(LoaderUtils.getStyle(configuration));\r
-               \r
-               LoaderUtils.listen(configuration, context, ViewsResources.URIs.TextContainer_HasText, node.getTextFunction());\r
-               LoaderUtils.listen(configuration, context, ViewsResources.URIs.Control_HasBackground, RGB.Integer.BINDING, node.getBackgroundFunction());\r
-               LoaderUtils.listen(configuration, context, ViewsResources.URIs.Control_HasForeground, RGB.Integer.BINDING, node.getForegroundFunction());\r
-               LoaderUtils.listen(configuration, context, ViewsResources.URIs.Control_HasFont, Font.BINDING, node.getFontFunction());\r
-        \r
-               return node;\r
-               \r
-       }\r
-       \r
-}\r
+package org.simantics.views.swt.loader;
+
+import org.simantics.datatypes.literal.Font;
+import org.simantics.datatypes.literal.RGB;
+import org.simantics.db.Resource;
+import org.simantics.db.exception.DatabaseException;
+import org.simantics.db.layer0.variable.Variable;
+import org.simantics.scenegraph.ParentNode;
+import org.simantics.scenegraph.loader.ScenegraphLoader;
+import org.simantics.views.ontology.ViewsResources;
+import org.simantics.views.swt.client.base.ISWTViewNode;
+import org.simantics.views.swt.client.impl.SWTText;
+
+public class TextLoader implements ScenegraphLoader {
+
+       final private Resource configuration;
+       
+       public TextLoader(Resource configuration) {
+               this.configuration = configuration;
+       }
+       
+       @Override
+       public ISWTViewNode create(ParentNode<ISWTViewNode> parent, Variable context) throws DatabaseException {
+               
+               SWTText node = parent.addNode(SWTText.class);
+               
+               node.setLayoutData(LoaderUtils.getGridData(configuration));
+               node.setStyle(LoaderUtils.getStyle(configuration));
+               
+               LoaderUtils.listen(configuration, context, ViewsResources.URIs.TextContainer_HasText, node.getTextFunction());
+               LoaderUtils.listen(configuration, context, ViewsResources.URIs.Control_HasBackground, RGB.Integer.BINDING, node.getBackgroundFunction());
+               LoaderUtils.listen(configuration, context, ViewsResources.URIs.Control_HasForeground, RGB.Integer.BINDING, node.getForegroundFunction());
+               LoaderUtils.listen(configuration, context, ViewsResources.URIs.Control_HasFont, Font.BINDING, node.getFontFunction());
+        
+               return node;
+               
+       }
+       
+}