]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.debug.browser/src/org/simantics/debug/browser/internal/rewriters/ResourceInfoCreator.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.debug.browser / src / org / simantics / debug / browser / internal / rewriters / ResourceInfoCreator.java
index 1bb29687ce8efa6d00f0104fbdc4fd81d0bd7e35..eda5eccb474052dad053a6b8620acf1fd75b7d7c 100644 (file)
@@ -1,42 +1,42 @@
-/*******************************************************************************\r
- * Copyright (c) 2016 Association for Decentralized Information Management\r
- * in 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
- *     THTH ry - initial API and implementation\r
- *******************************************************************************/\r
-package org.simantics.debug.browser.internal.rewriters;\r
-\r
-import org.simantics.db.ReadGraph;\r
-import org.simantics.db.exception.DatabaseException;\r
-import org.simantics.db.service.XSupport;\r
-import org.simantics.debug.browser.content.ResourceBrowserContent;\r
-import org.simantics.debug.browser.content.ResourceBrowserRewriter;\r
-import org.simantics.debug.browser.sections.ResourceInfoSection;\r
-import org.simantics.debug.browser.utils.ValueInfo;\r
-import org.simantics.debug.browser.utils.Values;\r
-\r
-public enum ResourceInfoCreator implements ResourceBrowserRewriter {\r
-\r
-    INSTANCE;\r
-\r
-    @Override\r
-    public void rewrite(ReadGraph graph, ResourceBrowserContent content) throws DatabaseException {\r
-        XSupport xs = graph.getService(XSupport.class);\r
-        boolean immutable = xs.getImmutable(content.resource);\r
-        ValueInfo valueInfo = Values.getPossibleValueInfo(graph, content.resource);\r
-        if (valueInfo != null || immutable) {\r
-            content.putSection(ResourceInfoSection.class, new ResourceInfoSection(valueInfo, immutable));\r
-        }\r
-    }\r
-\r
-    @Override\r
-    public double getPriority() {\r
-        return 0;\r
-    }\r
-\r
-}\r
+/*******************************************************************************
+ * Copyright (c) 2016 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:
+ *     THTH ry - initial API and implementation
+ *******************************************************************************/
+package org.simantics.debug.browser.internal.rewriters;
+
+import org.simantics.db.ReadGraph;
+import org.simantics.db.exception.DatabaseException;
+import org.simantics.db.service.XSupport;
+import org.simantics.debug.browser.content.ResourceBrowserContent;
+import org.simantics.debug.browser.content.ResourceBrowserRewriter;
+import org.simantics.debug.browser.sections.ResourceInfoSection;
+import org.simantics.debug.browser.utils.ValueInfo;
+import org.simantics.debug.browser.utils.Values;
+
+public enum ResourceInfoCreator implements ResourceBrowserRewriter {
+
+    INSTANCE;
+
+    @Override
+    public void rewrite(ReadGraph graph, ResourceBrowserContent content) throws DatabaseException {
+        XSupport xs = graph.getService(XSupport.class);
+        boolean immutable = xs.getImmutable(content.resource);
+        ValueInfo valueInfo = Values.getPossibleValueInfo(graph, content.resource);
+        if (valueInfo != null || immutable) {
+            content.putSection(ResourceInfoSection.class, new ResourceInfoSection(valueInfo, immutable));
+        }
+    }
+
+    @Override
+    public double getPriority() {
+        return 0;
+    }
+
+}