Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauricio Alferez2016-02-11 14:11:24 +0000
committerMauricio Alferez2016-02-11 14:11:24 +0000
commit751a204d74e15eb2db6b41c937691fc56dcc1252 (patch)
tree8aa9a59c8fd679a72726e0bab4dca86e1e055fb2 /extraplugins/requirements/org.eclipse.papyrus.requirements.languagecreationtools.commands/src/org/eclipse/papyrus/requirements/languagecreationtools/commands/Activator.java
parent9f0dccd90b00ccd5ee9dde1b7e13d3f9682de86f (diff)
downloadorg.eclipse.papyrus-751a204d74e15eb2db6b41c937691fc56dcc1252.tar.gz
org.eclipse.papyrus-751a204d74e15eb2db6b41c937691fc56dcc1252.tar.xz
org.eclipse.papyrus-751a204d74e15eb2db6b41c937691fc56dcc1252.zip
[Extra][Requirements] New "Papyrus for requirements" plugins
Change-Id: I6b277cbd7b8e5d353a942b285270e6fdf6c00268 Signed-off-by: Mauricio Alferez <mauricio.alferez@cea.fr>
Diffstat (limited to 'extraplugins/requirements/org.eclipse.papyrus.requirements.languagecreationtools.commands/src/org/eclipse/papyrus/requirements/languagecreationtools/commands/Activator.java')
-rw-r--r--extraplugins/requirements/org.eclipse.papyrus.requirements.languagecreationtools.commands/src/org/eclipse/papyrus/requirements/languagecreationtools/commands/Activator.java64
1 files changed, 64 insertions, 0 deletions
diff --git a/extraplugins/requirements/org.eclipse.papyrus.requirements.languagecreationtools.commands/src/org/eclipse/papyrus/requirements/languagecreationtools/commands/Activator.java b/extraplugins/requirements/org.eclipse.papyrus.requirements.languagecreationtools.commands/src/org/eclipse/papyrus/requirements/languagecreationtools/commands/Activator.java
new file mode 100644
index 00000000000..576387c8846
--- /dev/null
+++ b/extraplugins/requirements/org.eclipse.papyrus.requirements.languagecreationtools.commands/src/org/eclipse/papyrus/requirements/languagecreationtools/commands/Activator.java
@@ -0,0 +1,64 @@
+/*****************************************************************************
+ * Copyright (c) 2016 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:
+ *
+ * Mauricio Alferez (mauricio.alferez@cea.fr) CEA LIST - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.requirements.languagecreationtools.commands;
+
+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.requirements.languagecreationtools.commands"; //$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;
+ }
+
+}

Back to the top