]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.browsing.ui.swt/src/org/simantics/browsing/ui/swt/NodeContextValueBean.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.browsing.ui.swt / src / org / simantics / browsing / ui / swt / NodeContextValueBean.java
index cc0bb47accd1ba70c1199782bc7aa38ce8ba2b5e..42e2c94eb7ee44c91a4933b48b501968ccfaf6bd 100644 (file)
@@ -1,50 +1,50 @@
-/*******************************************************************************\r
- * Copyright (c) 2012 Association for Decentralized Information Management in\r
- * Industry THTH ry.\r
- * All rights reserved. This program and the accompanying materials\r
- * are made available under the terms of the Eclipse Public License v1.0\r
- * which accompanies this distribution, and is available at\r
- * http://www.eclipse.org/legal/epl-v10.html\r
- *\r
- * Contributors:\r
- *     VTT Technical Research Centre of Finland - initial API and implementation\r
- *******************************************************************************/\r
-package org.simantics.browsing.ui.swt;\r
-\r
-import java.util.Collections;\r
-import java.util.List;\r
-\r
-import org.simantics.browsing.ui.model.nodetypes.EntityNodeType;\r
-import org.simantics.browsing.ui.model.nodetypes.SpecialNodeType;\r
-import org.simantics.databoard.util.Bean;\r
-import org.simantics.db.Resource;\r
-\r
-public class NodeContextValueBean extends Bean {\r
-\r
-       public String name;\r
-       public Resource resource;\r
-       public List<Resource> resources;\r
-       public String className = "";\r
-       \r
-       public NodeContextValueBean(EntityNodeType ent) {\r
-               name = EntityNodeType.class.getName();\r
-               resource = ent.entityTypes.get(0);\r
-               resources = ent.entityTypes;\r
-       }\r
-\r
-       public NodeContextValueBean(SpecialNodeType ent) {\r
-               assert(ent.resource != null);\r
-               name = SpecialNodeType.class.getName();\r
-               resource = ent.resource;\r
-               resources = Collections.singletonList(ent.resource);\r
-               className = ent.getContentType().getName();\r
-       }\r
-\r
-       public NodeContextValueBean(Resource resource) {\r
-               assert(resource != null);\r
-               name = Resource.class.getName();\r
-               this.resource = resource;\r
-               this.resources = Collections.singletonList(resource);\r
-       }\r
-       \r
-}\r
+/*******************************************************************************
+ * Copyright (c) 2012 Association for Decentralized Information Management in
+ * Industry THTH ry.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ *     VTT Technical Research Centre of Finland - initial API and implementation
+ *******************************************************************************/
+package org.simantics.browsing.ui.swt;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.simantics.browsing.ui.model.nodetypes.EntityNodeType;
+import org.simantics.browsing.ui.model.nodetypes.SpecialNodeType;
+import org.simantics.databoard.util.Bean;
+import org.simantics.db.Resource;
+
+public class NodeContextValueBean extends Bean {
+
+       public String name;
+       public Resource resource;
+       public List<Resource> resources;
+       public String className = "";
+       
+       public NodeContextValueBean(EntityNodeType ent) {
+               name = EntityNodeType.class.getName();
+               resource = ent.entityTypes.get(0);
+               resources = ent.entityTypes;
+       }
+
+       public NodeContextValueBean(SpecialNodeType ent) {
+               assert(ent.resource != null);
+               name = SpecialNodeType.class.getName();
+               resource = ent.resource;
+               resources = Collections.singletonList(ent.resource);
+               className = ent.getContentType().getName();
+       }
+
+       public NodeContextValueBean(Resource resource) {
+               assert(resource != null);
+               name = Resource.class.getName();
+               this.resource = resource;
+               this.resources = Collections.singletonList(resource);
+       }
+       
+}