]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.diagram.profile/src/org/simantics/diagram/profile/view/Activator.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.diagram.profile / src / org / simantics / diagram / profile / view / Activator.java
index 3910bc08485ebdca7043c71d60a848ec738328ee..9cf13ff72357fa38a98a48c2c1e21949a3739a2f 100644 (file)
@@ -1,71 +1,71 @@
-package org.simantics.diagram.profile.view;\r
-\r
-import java.net.URL;\r
-\r
-import org.eclipse.ui.plugin.AbstractUIPlugin;\r
-import org.osgi.framework.BundleContext;\r
-import org.osgi.util.tracker.ServiceTracker;\r
-\r
-public class Activator extends AbstractUIPlugin {\r
-\r
-    // The plug-in ID\r
-    public static final String    PLUGIN_ID = "org.simantics.diagram.profile";\r
-\r
-    // The shared instance\r
-    private static Activator      plugin;\r
-\r
-    private BundleContext         bundleContext;\r
-\r
-    private ServiceTracker<?, ?>  logTracker;\r
-\r
-    /**\r
-     * The constructor\r
-     */\r
-    public Activator() {\r
-    }\r
-\r
-    /* (non-Javadoc)\r
-     * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)\r
-     */\r
-    @Override\r
-    public void start(BundleContext context) throws Exception {\r
-        super.start(context);\r
-        this.bundleContext = context;\r
-        plugin = this;\r
-    }\r
-\r
-    /* (non-Javadoc)\r
-     * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)\r
-     */\r
-    @Override\r
-    public void stop(BundleContext context) throws Exception {\r
-        if (logTracker != null) {\r
-            logTracker.close();\r
-            logTracker = null;\r
-        }\r
-\r
-        this.bundleContext = null;\r
-        plugin = null;\r
-        super.stop(context);\r
-    }\r
-\r
-    /**\r
-     * Returns the shared instance\r
-     *\r
-     * @return the shared instance\r
-     */\r
-    public static Activator getDefault() {\r
-        return plugin;\r
-    }\r
-\r
-    public BundleContext getContext() {\r
-        return bundleContext;\r
-    }\r
-\r
-    public static URL getDefaultResource(String name) {\r
-        Activator plugin = getDefault();\r
-        if(plugin == null) throw new IllegalStateException("The plugin is not active.");\r
-        return plugin.getBundle().getResource(name);\r
-    }\r
-\r
-}\r
+package org.simantics.diagram.profile.view;
+
+import java.net.URL;
+
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.osgi.framework.BundleContext;
+import org.osgi.util.tracker.ServiceTracker;
+
+public class Activator extends AbstractUIPlugin {
+
+    // The plug-in ID
+    public static final String    PLUGIN_ID = "org.simantics.diagram.profile";
+
+    // The shared instance
+    private static Activator      plugin;
+
+    private BundleContext         bundleContext;
+
+    private ServiceTracker<?, ?>  logTracker;
+
+    /**
+     * The constructor
+     */
+    public Activator() {
+    }
+
+    /* (non-Javadoc)
+     * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
+     */
+    @Override
+    public void start(BundleContext context) throws Exception {
+        super.start(context);
+        this.bundleContext = context;
+        plugin = this;
+    }
+
+    /* (non-Javadoc)
+     * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
+     */
+    @Override
+    public void stop(BundleContext context) throws Exception {
+        if (logTracker != null) {
+            logTracker.close();
+            logTracker = null;
+        }
+
+        this.bundleContext = null;
+        plugin = null;
+        super.stop(context);
+    }
+
+    /**
+     * Returns the shared instance
+     *
+     * @return the shared instance
+     */
+    public static Activator getDefault() {
+        return plugin;
+    }
+
+    public BundleContext getContext() {
+        return bundleContext;
+    }
+
+    public static URL getDefaultResource(String name) {
+        Activator plugin = getDefault();
+        if(plugin == null) throw new IllegalStateException("The plugin is not active.");
+        return plugin.getBundle().getResource(name);
+    }
+
+}