]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.views.swt/src/org/simantics/views/swt/WizardFactory.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.views.swt / src / org / simantics / views / swt / WizardFactory.java
index 72ecf1cb1dd18bed29e69717729a564fcb1c7d32..ebdc7678e0db56316dffba9e1cd90d54d981a3b2 100644 (file)
@@ -1,56 +1,56 @@
-package org.simantics.views.swt;\r
-\r
-import org.eclipse.core.runtime.CoreException;\r
-import org.eclipse.core.runtime.IConfigurationElement;\r
-import org.eclipse.core.runtime.IExecutableExtension;\r
-import org.eclipse.core.runtime.IExecutableExtensionFactory;\r
-import org.eclipse.core.runtime.IStatus;\r
-import org.eclipse.core.runtime.Status;\r
-\r
-/**\r
- * \r
- * @author Antti Villberg\r
- */\r
-public class WizardFactory implements IExecutableExtensionFactory, IExecutableExtension {\r
-    \r
-    private IConfigurationElement config;\r
-\r
-    private String id;\r
-\r
-    private String propertyName;\r
-\r
-    public WizardFactory() {\r
-        // do nothing\r
-    }\r
-\r
-    private Object configure(Object obj) throws CoreException {\r
-        if (obj instanceof IExecutableExtension) {\r
-            ((IExecutableExtension) obj).setInitializationData(config, propertyName, null);\r
-        }\r
-        return obj;\r
-    }\r
-\r
-    @Override\r
-    public Object create() throws CoreException {\r
-       \r
-       return configure(new ModelledWizard(id));\r
-        \r
-    }\r
-\r
-    @Override\r
-    public void setInitializationData(IConfigurationElement config, String propertyName, Object data)\r
-    throws CoreException {\r
-        //System.out.println("setInitializationData: " + config + ", " + propertyName + ", " + data);\r
-\r
-        if (data instanceof String) {\r
-            id = (String) data;\r
-        } else {\r
-            throw new CoreException(new Status(IStatus.ERROR,\r
-                    Activator.PLUGIN_ID, 0,\r
-                    "Data argument must be a String for " + getClass(), null)); //$NON-NLS-1$\r
-        }\r
-        this.config = config;\r
-        this.propertyName = propertyName;\r
-    }\r
-\r
-}\r
+package org.simantics.views.swt;
+
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IConfigurationElement;
+import org.eclipse.core.runtime.IExecutableExtension;
+import org.eclipse.core.runtime.IExecutableExtensionFactory;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
+
+/**
+ * 
+ * @author Antti Villberg
+ */
+public class WizardFactory implements IExecutableExtensionFactory, IExecutableExtension {
+    
+    private IConfigurationElement config;
+
+    private String id;
+
+    private String propertyName;
+
+    public WizardFactory() {
+        // do nothing
+    }
+
+    private Object configure(Object obj) throws CoreException {
+        if (obj instanceof IExecutableExtension) {
+            ((IExecutableExtension) obj).setInitializationData(config, propertyName, null);
+        }
+        return obj;
+    }
+
+    @Override
+    public Object create() throws CoreException {
+       
+       return configure(new ModelledWizard(id));
+        
+    }
+
+    @Override
+    public void setInitializationData(IConfigurationElement config, String propertyName, Object data)
+    throws CoreException {
+        //System.out.println("setInitializationData: " + config + ", " + propertyName + ", " + data);
+
+        if (data instanceof String) {
+            id = (String) data;
+        } else {
+            throw new CoreException(new Status(IStatus.ERROR,
+                    Activator.PLUGIN_ID, 0,
+                    "Data argument must be a String for " + getClass(), null)); //$NON-NLS-1$
+        }
+        this.config = config;
+        this.propertyName = propertyName;
+    }
+
+}