]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.browsing.ui.swt/src/org/simantics/browsing/ui/swt/ModelledActionImpl.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.browsing.ui.swt / src / org / simantics / browsing / ui / swt / ModelledActionImpl.java
index 4ffc0a4a774db3b858d9c0e25d5119d9b24db740..adfa8d979c06f1dca1a1de4aeb8cff3437af2766 100644 (file)
@@ -1,58 +1,58 @@
-/*******************************************************************************\r
- * Copyright (c) 2012 Association for Decentralized Information Management in\r
- * 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.ui.IWorkbenchSite;\r
-import org.simantics.browsing.ui.swt.widgets.impl.WidgetSupport;\r
-import org.simantics.db.Resource;\r
-import org.simantics.db.exception.DatabaseException;\r
-import org.simantics.db.management.ISessionContext;\r
-\r
-public abstract class ModelledActionImpl<T> implements ModelledAction {\r
-\r
-       @SuppressWarnings("unused")\r
-    private Resource configuration;\r
-       private WidgetSupport support;\r
-       \r
-       public ModelledActionImpl(Resource configuration) {\r
-               this.configuration = configuration;\r
-       }\r
-       \r
-       public abstract void run(T input);\r
-\r
-       @SuppressWarnings("unchecked")\r
-       protected <T2> T2 getParameter(String uri) {\r
-               \r
-               return (T2)support.getParameter(uri);           \r
-               \r
-       }\r
-       \r
-       @Override\r
-       public Runnable create(IWorkbenchSite site, ISessionContext context, final WidgetSupport support) throws DatabaseException {\r
-       \r
-               this.support = support;\r
-               \r
-               return new Runnable() {\r
-\r
-                       @Override\r
-                       public void run() {\r
-                               @SuppressWarnings("unchecked")\r
-                               T input = (T)support.getInput();\r
-                               \r
-                               ModelledActionImpl.this.run(input);\r
-                       }\r
-                       \r
-               };\r
-               \r
-       }\r
-       \r
-}\r
+/*******************************************************************************
+ * Copyright (c) 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.ui.IWorkbenchSite;
+import org.simantics.browsing.ui.swt.widgets.impl.WidgetSupport;
+import org.simantics.db.Resource;
+import org.simantics.db.exception.DatabaseException;
+import org.simantics.db.management.ISessionContext;
+
+public abstract class ModelledActionImpl<T> implements ModelledAction {
+
+       @SuppressWarnings("unused")
+    private Resource configuration;
+       private WidgetSupport support;
+       
+       public ModelledActionImpl(Resource configuration) {
+               this.configuration = configuration;
+       }
+       
+       public abstract void run(T input);
+
+       @SuppressWarnings("unchecked")
+       protected <T2> T2 getParameter(String uri) {
+               
+               return (T2)support.getParameter(uri);           
+               
+       }
+       
+       @Override
+       public Runnable create(IWorkbenchSite site, ISessionContext context, final WidgetSupport support) throws DatabaseException {
+       
+               this.support = support;
+               
+               return new Runnable() {
+
+                       @Override
+                       public void run() {
+                               @SuppressWarnings("unchecked")
+                               T input = (T)support.getInput();
+                               
+                               ModelledActionImpl.this.run(input);
+                       }
+                       
+               };
+               
+       }
+       
+}