]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.ui/src/org/simantics/ui/workbench/e4/E4ResourceEditorInput.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.ui / src / org / simantics / ui / workbench / e4 / E4ResourceEditorInput.java
index fb270912398b66512a9359fe2e189161663be8a8..e7573a3939c5fa4be3eff32fab50b50377d77392 100644 (file)
@@ -1,88 +1,88 @@
-package org.simantics.ui.workbench.e4;\r
-\r
-import org.eclipse.core.runtime.IAdaptable;\r
-import org.eclipse.jface.resource.ImageDescriptor;\r
-import org.eclipse.ui.IPersistableElement;\r
-import org.simantics.db.ReadGraph;\r
-import org.simantics.db.Resource;\r
-import org.simantics.db.common.ResourceArray;\r
-import org.simantics.db.exception.DatabaseException;\r
-import org.simantics.ui.workbench.IResourceEditorInput;\r
-\r
-/**\r
- * @author Tuukka Lehtonen\r
- * @since 1.22\r
- */\r
-public class E4ResourceEditorInput implements IResourceEditorInput {\r
-\r
-    protected final Resource resource;\r
-    protected final ResourceArray resourceArray;\r
-\r
-    public E4ResourceEditorInput(ResourceArray ra) {\r
-        this.resourceArray = ra;\r
-        this.resource = null;\r
-    }\r
-    \r
-    public E4ResourceEditorInput(Resource resource) {\r
-        this.resource = resource;\r
-        this.resourceArray = new ResourceArray(resource);\r
-    }\r
-\r
-    @Override\r
-    public boolean exists() {\r
-        return true;\r
-    }\r
-\r
-    @Override\r
-    public ImageDescriptor getImageDescriptor() {\r
-        return null;\r
-    }\r
-\r
-    @Override\r
-    public String getName() {\r
-        return "";\r
-    }\r
-\r
-    @Override\r
-    public IPersistableElement getPersistable() {\r
-        return null;\r
-    }\r
-\r
-    @Override\r
-    public String getToolTipText() {\r
-        return null;\r
-    }\r
-\r
-    @Override\r
-    public <T> T getAdapter(Class<T> adapter) {\r
-        return null;\r
-    }\r
-\r
-    @Override\r
-    public void init(IAdaptable adapter) throws DatabaseException {\r
-    }\r
-\r
-    @Override\r
-    public void dispose() {\r
-    }\r
-\r
-    @Override\r
-    public Resource getResource() {\r
-        return resource;\r
-    }\r
-\r
-    @Override\r
-    public ResourceArray getResourceArray() {\r
-        return resourceArray;\r
-    }\r
-\r
-    @Override\r
-    public boolean exists(ReadGraph graph) throws DatabaseException {\r
-        return graph.hasStatement(resource);\r
-    }\r
-\r
-    @Override\r
-    public void update(ReadGraph g) throws DatabaseException {\r
-    }\r
-\r
-}\r
+package org.simantics.ui.workbench.e4;
+
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.jface.resource.ImageDescriptor;
+import org.eclipse.ui.IPersistableElement;
+import org.simantics.db.ReadGraph;
+import org.simantics.db.Resource;
+import org.simantics.db.common.ResourceArray;
+import org.simantics.db.exception.DatabaseException;
+import org.simantics.ui.workbench.IResourceEditorInput;
+
+/**
+ * @author Tuukka Lehtonen
+ * @since 1.22
+ */
+public class E4ResourceEditorInput implements IResourceEditorInput {
+
+    protected final Resource resource;
+    protected final ResourceArray resourceArray;
+
+    public E4ResourceEditorInput(ResourceArray ra) {
+        this.resourceArray = ra;
+        this.resource = null;
+    }
+    
+    public E4ResourceEditorInput(Resource resource) {
+        this.resource = resource;
+        this.resourceArray = new ResourceArray(resource);
+    }
+
+    @Override
+    public boolean exists() {
+        return true;
+    }
+
+    @Override
+    public ImageDescriptor getImageDescriptor() {
+        return null;
+    }
+
+    @Override
+    public String getName() {
+        return "";
+    }
+
+    @Override
+    public IPersistableElement getPersistable() {
+        return null;
+    }
+
+    @Override
+    public String getToolTipText() {
+        return null;
+    }
+
+    @Override
+    public <T> T getAdapter(Class<T> adapter) {
+        return null;
+    }
+
+    @Override
+    public void init(IAdaptable adapter) throws DatabaseException {
+    }
+
+    @Override
+    public void dispose() {
+    }
+
+    @Override
+    public Resource getResource() {
+        return resource;
+    }
+
+    @Override
+    public ResourceArray getResourceArray() {
+        return resourceArray;
+    }
+
+    @Override
+    public boolean exists(ReadGraph graph) throws DatabaseException {
+        return graph.hasStatement(resource);
+    }
+
+    @Override
+    public void update(ReadGraph g) throws DatabaseException {
+    }
+
+}