]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.browsing.ui.swt/src/org/simantics/browsing/ui/swt/NewPropertyViewAdapter.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.browsing.ui.swt / src / org / simantics / browsing / ui / swt / NewPropertyViewAdapter.java
index ed2d86a48e55aa8f677869b29c089fb64d34282b..d71021c9c3a2023054314e59dc1af734269fd487 100644 (file)
@@ -1,44 +1,44 @@
-/*******************************************************************************\r
- * Copyright (c) 2007, 2012 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.browsing.ui.swt;\r
-\r
-import org.eclipse.jface.resource.ImageDescriptor;\r
-import org.simantics.db.ReadGraph;\r
-import org.simantics.db.Resource;\r
-import org.simantics.ui.workbench.editor.AbstractResourceEditorAdapter;\r
-\r
-/**\r
- * WARNING: this adapter does not currently handle structural selections, i.e.\r
- * resource paths but only single resources which will result failure to show\r
- * correct data or even worse.\r
- * \r
- * TODO: override {@link #canHandle(ReadGraph, Object)} and\r
- * {@link #openEditor(Object)} to do what's described above.\r
- */\r
-public class NewPropertyViewAdapter extends AbstractResourceEditorAdapter {\r
-\r
-    public NewPropertyViewAdapter() {\r
-        super("New Property View", ImageDescriptor.createFromURL(\r
-                NewPropertyViewAdapter.class.getResource("../../../../../icons/table_multiple.png")));\r
-    }\r
-\r
-    @Override\r
-    public boolean canHandle(ReadGraph g, Object r) {\r
-        return true;\r
-    }\r
-\r
-    @Override\r
-    public void openEditor(Resource r) throws Exception {\r
-        openViewWithId("org.simantics.browsing.ui.graph.propertyView", r);\r
-    }\r
-\r
-}\r
+/*******************************************************************************
+ * Copyright (c) 2007, 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 org.eclipse.jface.resource.ImageDescriptor;
+import org.simantics.db.ReadGraph;
+import org.simantics.db.Resource;
+import org.simantics.ui.workbench.editor.AbstractResourceEditorAdapter;
+
+/**
+ * WARNING: this adapter does not currently handle structural selections, i.e.
+ * resource paths but only single resources which will result failure to show
+ * correct data or even worse.
+ * 
+ * TODO: override {@link #canHandle(ReadGraph, Object)} and
+ * {@link #openEditor(Object)} to do what's described above.
+ */
+public class NewPropertyViewAdapter extends AbstractResourceEditorAdapter {
+
+    public NewPropertyViewAdapter() {
+        super("New Property View", ImageDescriptor.createFromURL(
+                NewPropertyViewAdapter.class.getResource("../../../../../icons/table_multiple.png")));
+    }
+
+    @Override
+    public boolean canHandle(ReadGraph g, Object r) {
+        return true;
+    }
+
+    @Override
+    public void openEditor(Resource r) throws Exception {
+        openViewWithId("org.simantics.browsing.ui.graph.propertyView", r);
+    }
+
+}