]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.browsing.ui.graph.impl/src/org/simantics/browsing/ui/graph/impl/WorkbenchSelectionResourceInputSource.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.browsing.ui.graph.impl / src / org / simantics / browsing / ui / graph / impl / WorkbenchSelectionResourceInputSource.java
index 4f7c3ab7dbbf3389be05f9bc8ffce5ab75020e0a..af63a5a313efb4bb08d4eb0d6746f4dee49bf295 100644 (file)
@@ -1,36 +1,36 @@
-/*******************************************************************************\r
- * Copyright (c) 2007, 2011 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.graph.impl;\r
-\r
-import org.eclipse.jface.viewers.ISelection;\r
-import org.eclipse.ui.IWorkbenchPart;\r
-import org.simantics.db.Resource;\r
-import org.simantics.db.layer0.SelectionHints;\r
-import org.simantics.utils.ui.ISelectionUtils;\r
-\r
-/**\r
- * @author Antti Villberg\r
- */\r
-public class WorkbenchSelectionResourceInputSource extends WorkbenchSelectionInputSource {\r
-\r
-    /**\r
-     * @thread SWT\r
-     */\r
-    @Override\r
-    public void selectionChanged(IWorkbenchPart part, ISelection selection) {\r
-        Object old = this.selection;\r
-        this.selection = ISelectionUtils.getSinglePossibleKey(selection, SelectionHints.KEY_MAIN, Resource.class);\r
-        //System.err.println("WorkbenchSelectionResourceInputSource.selectionChanged(" + part + ", " + this.selection + ")");\r
-        fireIfInputChanged(old, selection);\r
-    }\r
-\r
-}\r
+/*******************************************************************************
+ * Copyright (c) 2007, 2011 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.graph.impl;
+
+import org.eclipse.jface.viewers.ISelection;
+import org.eclipse.ui.IWorkbenchPart;
+import org.simantics.db.Resource;
+import org.simantics.db.layer0.SelectionHints;
+import org.simantics.utils.ui.ISelectionUtils;
+
+/**
+ * @author Antti Villberg
+ */
+public class WorkbenchSelectionResourceInputSource extends WorkbenchSelectionInputSource {
+
+    /**
+     * @thread SWT
+     */
+    @Override
+    public void selectionChanged(IWorkbenchPart part, ISelection selection) {
+        Object old = this.selection;
+        this.selection = ISelectionUtils.getSinglePossibleKey(selection, SelectionHints.KEY_MAIN, Resource.class);
+        //System.err.println("WorkbenchSelectionResourceInputSource.selectionChanged(" + part + ", " + this.selection + ")");
+        fireIfInputChanged(old, selection);
+    }
+
+}