Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorytanguy2010-10-15 07:18:17 +0000
committerytanguy2010-10-15 07:18:17 +0000
commit4543baaba33e2d614cc391218e0d8600534e76bc (patch)
tree3539a541103822dce5def72bfd642627ac66f4f1 /extraplugins/spem2/org.eclipse.papyrus.spem2.profile/src
parent2a565104e4b3af64155ee2249eaa36716cd1cc45 (diff)
downloadorg.eclipse.papyrus-4543baaba33e2d614cc391218e0d8600534e76bc.tar.gz
org.eclipse.papyrus-4543baaba33e2d614cc391218e0d8600534e76bc.tar.xz
org.eclipse.papyrus-4543baaba33e2d614cc391218e0d8600534e76bc.zip
NEW - bug 327858: [SPEM2] Providing SPEM2 profile
https://bugs.eclipse.org/bugs/show_bug.cgi?id=327858
Diffstat (limited to 'extraplugins/spem2/org.eclipse.papyrus.spem2.profile/src')
-rw-r--r--extraplugins/spem2/org.eclipse.papyrus.spem2.profile/src/org/eclipse/papyrus/spem2/profile/Activator.java67
1 files changed, 67 insertions, 0 deletions
diff --git a/extraplugins/spem2/org.eclipse.papyrus.spem2.profile/src/org/eclipse/papyrus/spem2/profile/Activator.java b/extraplugins/spem2/org.eclipse.papyrus.spem2.profile/src/org/eclipse/papyrus/spem2/profile/Activator.java
new file mode 100644
index 00000000000..501c5b86670
--- /dev/null
+++ b/extraplugins/spem2/org.eclipse.papyrus.spem2.profile/src/org/eclipse/papyrus/spem2/profile/Activator.java
@@ -0,0 +1,67 @@
+/*****************************************************************************
+ * Copyright (c) 2007-2010 CEA LIST.
+ *
+ *
+ * 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:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.spem2.profile;
+
+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.spem2.profile";
+
+ // The shared instance
+ private static Activator plugin;
+
+ /**
+ * The constructor
+ */
+ public Activator() {
+ plugin = this;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
+ */
+ @Override
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
+ */
+ @Override
+ 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;
+ }
+
+}

Back to the top