]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.selectionview/src/org/simantics/selectionview/CategoryNodeLabelRule.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.selectionview / src / org / simantics / selectionview / CategoryNodeLabelRule.java
index 5654c01a51cb578bfa8a134f79c559560c22258c..7ebc2ef99bfb4f3319e1e4622840759ba001ad5c 100644 (file)
@@ -1,29 +1,29 @@
-package org.simantics.selectionview;\r
-\r
-import java.util.Map;\r
-\r
-import org.simantics.browsing.ui.common.ColumnKeys;\r
-import org.simantics.browsing.ui.model.labels.LabelRule;\r
-import org.simantics.db.ReadGraph;\r
-import org.simantics.db.exception.DatabaseException;\r
-import org.simantics.utils.datastructures.ArrayMap;\r
-\r
-public class CategoryNodeLabelRule implements LabelRule {\r
-\r
-       private static final String[] COLS = new String[] { ColumnKeys.DISPLAY_PROPERTY };\r
-       \r
-    @Override\r
-    public boolean isCompatible(Class<?> contentType) {\r
-        return contentType.equals(CategoryNode.class);\r
-    }\r
-\r
-    @Override\r
-    public Map<String, String> getLabel(ReadGraph graph, Object content)\r
-            throws DatabaseException {\r
-       \r
-               String[] result = new String[] { ((CategoryNode)content).getName() };\r
-               return new ArrayMap<String, String>(COLS, result);\r
-               \r
-    }\r
-\r
-}\r
+package org.simantics.selectionview;
+
+import java.util.Map;
+
+import org.simantics.browsing.ui.common.ColumnKeys;
+import org.simantics.browsing.ui.model.labels.LabelRule;
+import org.simantics.db.ReadGraph;
+import org.simantics.db.exception.DatabaseException;
+import org.simantics.utils.datastructures.ArrayMap;
+
+public class CategoryNodeLabelRule implements LabelRule {
+
+       private static final String[] COLS = new String[] { ColumnKeys.DISPLAY_PROPERTY };
+       
+    @Override
+    public boolean isCompatible(Class<?> contentType) {
+        return contentType.equals(CategoryNode.class);
+    }
+
+    @Override
+    public Map<String, String> getLabel(ReadGraph graph, Object content)
+            throws DatabaseException {
+       
+               String[] result = new String[] { ((CategoryNode)content).getName() };
+               return new ArrayMap<String, String>(COLS, result);
+               
+    }
+
+}