From 2f92c2d46c48de4e7d496d7109462292be2b0dca Mon Sep 17 00:00:00 2001 From: Kevin Kassin <kevinkassin@gmx.de> Date: Tue, 12 Sep 2017 22:44:00 +0200 Subject: [PATCH] Commit 12.9 22:45 added activator classes to the packages feature model and ui --- .../META-INF/MANIFEST.MF | 4 +- .../framed/iorm/featuremodel/Activator.java | 49 +++++++++++++++++++ org.framed.iorm.model/META-INF/MANIFEST.MF | 4 +- .../src/org/framed/iorm/ui/Activator.java | 49 +++++++++++++++++++ 4 files changed, 103 insertions(+), 3 deletions(-) create mode 100644 org.framed.iorm.featuremodel/src/org/framed/iorm/featuremodel/Activator.java create mode 100644 org.framed.iorm.ui/src/org/framed/iorm/ui/Activator.java diff --git a/org.framed.iorm.featuremodel/META-INF/MANIFEST.MF b/org.framed.iorm.featuremodel/META-INF/MANIFEST.MF index c0c6de22..03782a00 100644 --- a/org.framed.iorm.featuremodel/META-INF/MANIFEST.MF +++ b/org.framed.iorm.featuremodel/META-INF/MANIFEST.MF @@ -4,4 +4,6 @@ Bundle-Name: Featuremodel Bundle-SymbolicName: org.framed.iorm.featuremodel Bundle-Version: 1.0.0.qualifier Bundle-RequiredExecutionEnvironment: JavaSE-1.8 -Require-Bundle: org.framed.iorm.model;bundle-version="1.0.0" +Require-Bundle: org.eclipse.ui;bundle-version="3.109.0", + org.eclipse.core.runtime;bundle-version="3.13.0" +Import-Package: org.osgi.framework diff --git a/org.framed.iorm.featuremodel/src/org/framed/iorm/featuremodel/Activator.java b/org.framed.iorm.featuremodel/src/org/framed/iorm/featuremodel/Activator.java new file mode 100644 index 00000000..dba6a89b --- /dev/null +++ b/org.framed.iorm.featuremodel/src/org/framed/iorm/featuremodel/Activator.java @@ -0,0 +1,49 @@ +package org.framed.iorm.featuremodel; + +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.framed.iorm.featuremodel"; //$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; + } +} \ No newline at end of file diff --git a/org.framed.iorm.model/META-INF/MANIFEST.MF b/org.framed.iorm.model/META-INF/MANIFEST.MF index 5ee7d8b3..0723a651 100644 --- a/org.framed.iorm.model/META-INF/MANIFEST.MF +++ b/org.framed.iorm.model/META-INF/MANIFEST.MF @@ -13,6 +13,6 @@ Export-Package: org.framed.iorm.featuremodel, org.framed.iorm.model, org.framed.iorm.model.impl, org.framed.iorm.model.util -Require-Bundle: org.eclipse.core.runtime, - org.eclipse.emf.ecore;visibility:=reexport +Require-Bundle: org.eclipse.emf.common;bundle-version="2.13.0", + org.eclipse.emf.ecore;bundle-version="2.13.0" Bundle-ActivationPolicy: lazy diff --git a/org.framed.iorm.ui/src/org/framed/iorm/ui/Activator.java b/org.framed.iorm.ui/src/org/framed/iorm/ui/Activator.java new file mode 100644 index 00000000..2153ba97 --- /dev/null +++ b/org.framed.iorm.ui/src/org/framed/iorm/ui/Activator.java @@ -0,0 +1,49 @@ +package org.framed.iorm.ui; + +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.framed.iorm.ui"; //$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; + } +} \ No newline at end of file -- GitLab