diff options
author | cletavernie | 2011-07-20 07:23:49 +0000 |
---|---|---|
committer | cletavernie | 2011-07-20 07:23:49 +0000 |
commit | 27443d0ca327feb04279e826b77ad7c118e99a67 (patch) | |
tree | 174b4dcd1b417a4db66971be9bfc7aeaf7ac1be4 /sandbox/org.eclipse.papyrus.newchild.customization/src/org/eclipse/papyrus/newchild/customization | |
parent | 8a165800b989293db8a0a47d3331befdf296fca8 (diff) | |
download | org.eclipse.papyrus-27443d0ca327feb04279e826b77ad7c118e99a67.tar.gz org.eclipse.papyrus-27443d0ca327feb04279e826b77ad7c118e99a67.tar.xz org.eclipse.papyrus-27443d0ca327feb04279e826b77ad7c118e99a67.zip |
351803: [New Child] Papyrus shall provide a customizable "New Child" menu
https://bugs.eclipse.org/bugs/show_bug.cgi?id=351803
Diffstat (limited to 'sandbox/org.eclipse.papyrus.newchild.customization/src/org/eclipse/papyrus/newchild/customization')
-rw-r--r-- | sandbox/org.eclipse.papyrus.newchild.customization/src/org/eclipse/papyrus/newchild/customization/Activator.java | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/sandbox/org.eclipse.papyrus.newchild.customization/src/org/eclipse/papyrus/newchild/customization/Activator.java b/sandbox/org.eclipse.papyrus.newchild.customization/src/org/eclipse/papyrus/newchild/customization/Activator.java new file mode 100644 index 00000000000..ee83deb91dd --- /dev/null +++ b/sandbox/org.eclipse.papyrus.newchild.customization/src/org/eclipse/papyrus/newchild/customization/Activator.java @@ -0,0 +1,50 @@ +package org.eclipse.papyrus.newchild.customization;
+
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.osgi.framework.BundleContext;
+
+/**
+ * The activator class controls the plug-in life cycle
+ */
+public class Activator extends AbstractUIPlugin {
+
+ // The plug-in ID
+ public static final String PLUGIN_ID = "org.eclipse.papyrus.newchild.customization"; //$NON-NLS-1$
+
+ // The shared instance
+ private static Activator plugin;
+
+ /**
+ * The constructor
+ */
+ public Activator() {
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
+ */
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ plugin = this;
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
+ */
+ public void stop(BundleContext context) throws Exception {
+ plugin = null;
+ super.stop(context);
+ }
+
+ /**
+ * Returns the shared instance
+ *
+ * @return the shared instance
+ */
+ public static Activator getDefault() {
+ return plugin;
+ }
+
+}
|