diff --git a/org.framed.iorm.featuremodel/META-INF/MANIFEST.MF b/org.framed.iorm.featuremodel/META-INF/MANIFEST.MF index c0c6de227a05c935b4a7c3af3337c63fbeef5979..03782a00f322b51b19c5b0c60cfb5a5aaa829e0f 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 0000000000000000000000000000000000000000..dba6a89bc07c537ab3ccca9ac5166ade4e314480 --- /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 5ee7d8b3e41a4672c0cc883390d783c4f655feeb..0723a65154ba3e1c44a58e61b5ea0d590dba2682 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 0000000000000000000000000000000000000000..2153ba97afcda1d3492b2f3d28de387ef34112cd --- /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