Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcletavernie2011-11-02 06:15:36 -0400
committercletavernie2011-11-02 06:15:36 -0400
commitba0eba9b03fdf2595b3be92ed345854a192cc748 (patch)
tree8099a9298d0470b9e7e803dcf9b209beb7a596eb /plugins/sysml/properties/org.eclipse.papyrus.sysml.properties/src
parent3ba63ae646776685fba8f143ea01391517cd061d (diff)
downloadorg.eclipse.papyrus-ba0eba9b03fdf2595b3be92ed345854a192cc748.tar.gz
org.eclipse.papyrus-ba0eba9b03fdf2595b3be92ed345854a192cc748.tar.xz
org.eclipse.papyrus-ba0eba9b03fdf2595b3be92ed345854a192cc748.zip
362162: [Architecture - Refactoring] The plug-ins should be renamed to match their layer's qualified name
https://bugs.eclipse.org/bugs/show_bug.cgi?id=362162
Diffstat (limited to 'plugins/sysml/properties/org.eclipse.papyrus.sysml.properties/src')
-rw-r--r--plugins/sysml/properties/org.eclipse.papyrus.sysml.properties/src/org/eclipse/papyrus/properties/sysml/Activator.java44
1 files changed, 44 insertions, 0 deletions
diff --git a/plugins/sysml/properties/org.eclipse.papyrus.sysml.properties/src/org/eclipse/papyrus/properties/sysml/Activator.java b/plugins/sysml/properties/org.eclipse.papyrus.sysml.properties/src/org/eclipse/papyrus/properties/sysml/Activator.java
new file mode 100644
index 00000000000..641b9bdaf15
--- /dev/null
+++ b/plugins/sysml/properties/org.eclipse.papyrus.sysml.properties/src/org/eclipse/papyrus/properties/sysml/Activator.java
@@ -0,0 +1,44 @@
+/*****************************************************************************
+ * Copyright (c) 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:
+ * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
+ *****************************************************************************/
+package org.eclipse.papyrus.properties.sysml;
+
+import org.osgi.framework.BundleActivator;
+import org.osgi.framework.BundleContext;
+
+/** The activator class controls the plug-in life cycle */
+public class Activator implements BundleActivator {
+
+ private static BundleContext context;
+
+ static BundleContext getContext() {
+ return context;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
+ */
+ public void start(BundleContext bundleContext) throws Exception {
+ Activator.context = bundleContext;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
+ */
+ public void stop(BundleContext bundleContext) throws Exception {
+ Activator.context = null;
+ }
+
+}

Back to the top