Skip to content
Snippets Groups Projects
Commit 2f92c2d4 authored by Kevin Kassin's avatar Kevin Kassin
Browse files

Commit 12.9 22:45

added activator classes to the packages feature model and ui
parent f7cf8778
No related branches found
No related tags found
No related merge requests found
......@@ -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
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
......@@ -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
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment