]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.ui/src/org/simantics/ui/workbench/IResourceEditorInput.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.ui / src / org / simantics / ui / workbench / IResourceEditorInput.java
index 0df48984313b3bccd64ff6e72bf01df459e584cc..00229c972956495f78c27c6587b983e6d9e12377 100644 (file)
@@ -1,69 +1,69 @@
-/*******************************************************************************\r
- * Copyright (c) 2007, 2010 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
- *     VTT Technical Research Centre of Finland - initial API and implementation\r
- *******************************************************************************/\r
-package org.simantics.ui.workbench;\r
-\r
-import org.eclipse.core.runtime.IAdaptable;\r
-import org.eclipse.ui.IEditorInput;\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
-\r
-/**\r
- * @author Tuukka Lehtonen\r
- * \r
- * @see IResourceEditorInput2\r
- * @see ResourceEditorInput\r
- * @see ResourceEditorInput2\r
- */\r
-public interface IResourceEditorInput extends IEditorInput {\r
-\r
-    /**\r
-     * @param adapter not needed anymore since 1.6, may be <code>null</code>\r
-     */\r
-    void init(IAdaptable adapter) throws DatabaseException;\r
-\r
-    /**\r
-     * Release any strong references to resources held by this editor input.\r
-     * Does nothing when called multiple times.\r
-     */\r
-    void dispose();\r
-\r
-    /**\r
-     * @return the same as getResourceArray().get(0) or <code>null</code> if\r
-     *         resource does not exist, i.e. getResourceArray returns an empty\r
-     *         resource array\r
-     */\r
-    Resource getResource();\r
-\r
-    /**\r
-     * @return <code>null</code> if resource does not exist\r
-     */\r
-    ResourceArray getResourceArray();\r
-\r
-    /**\r
-     * For checking the existence of the resource input from the given graph.\r
-     * \r
-     * @param g\r
-     * @return\r
-     */\r
-    boolean exists(ReadGraph g) throws DatabaseException;\r
-\r
-    /**\r
-     * Needs to be called on every update by the related editor part to keep the\r
-     * cached data coherent with the graph model.\r
-     * \r
-     * @param g\r
-     */\r
-    void update(ReadGraph g) throws DatabaseException;\r
-\r
-}\r
+/*******************************************************************************
+ * Copyright (c) 2007, 2010 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.ui.workbench;
+
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.ui.IEditorInput;
+import org.simantics.db.ReadGraph;
+import org.simantics.db.Resource;
+import org.simantics.db.common.ResourceArray;
+import org.simantics.db.exception.DatabaseException;
+
+/**
+ * @author Tuukka Lehtonen
+ * 
+ * @see IResourceEditorInput2
+ * @see ResourceEditorInput
+ * @see ResourceEditorInput2
+ */
+public interface IResourceEditorInput extends IEditorInput {
+
+    /**
+     * @param adapter not needed anymore since 1.6, may be <code>null</code>
+     */
+    void init(IAdaptable adapter) throws DatabaseException;
+
+    /**
+     * Release any strong references to resources held by this editor input.
+     * Does nothing when called multiple times.
+     */
+    void dispose();
+
+    /**
+     * @return the same as getResourceArray().get(0) or <code>null</code> if
+     *         resource does not exist, i.e. getResourceArray returns an empty
+     *         resource array
+     */
+    Resource getResource();
+
+    /**
+     * @return <code>null</code> if resource does not exist
+     */
+    ResourceArray getResourceArray();
+
+    /**
+     * For checking the existence of the resource input from the given graph.
+     * 
+     * @param g
+     * @return
+     */
+    boolean exists(ReadGraph g) throws DatabaseException;
+
+    /**
+     * Needs to be called on every update by the related editor part to keep the
+     * cached data coherent with the graph model.
+     * 
+     * @param g
+     */
+    void update(ReadGraph g) throws DatabaseException;
+
+}