]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scenegraph.profile/src/org/simantics/scenegraph/profile/impl/Activator.java
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.scenegraph.profile / src / org / simantics / scenegraph / profile / impl / Activator.java
diff --git a/bundles/org.simantics.scenegraph.profile/src/org/simantics/scenegraph/profile/impl/Activator.java b/bundles/org.simantics.scenegraph.profile/src/org/simantics/scenegraph/profile/impl/Activator.java
new file mode 100644 (file)
index 0000000..d0540a0
--- /dev/null
@@ -0,0 +1,44 @@
+package org.simantics.scenegraph.profile.impl;\r
+import org.eclipse.core.runtime.Plugin;\r
+import org.osgi.framework.BundleContext;\r
+\r
+\r
+\r
+public class Activator extends Plugin {\r
+\r
+    // The plug-in ID\r
+    public static final String PLUGIN_ID = "org.simantics.scenegraph.profile";\r
+\r
+    // The shared instance\r
+    private static Activator       plugin;\r
+\r
+    /*\r
+     * (non-Javadoc)\r
+     * @see org.eclipse.core.runtime.Plugins#start(org.osgi.framework.BundleContext)\r
+     */\r
+    @Override\r
+    public void start(BundleContext context) throws Exception {\r
+        super.start(context);\r
+        plugin = this;\r
+    }\r
+\r
+    /*\r
+     * (non-Javadoc)\r
+     * @see org.eclipse.core.runtime.Plugin#stop(org.osgi.framework.BundleContext)\r
+     */\r
+    @Override\r
+    public void stop(BundleContext context) throws Exception {\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
+}\r