From 83ec6cd048be645225c08265eb86b35e811dd1c9 Mon Sep 17 00:00:00 2001 From: yvesf Date: Fri, 13 May 2011 19:06:56 +0200 Subject: Ende Fischer '11 --- de.dhbw.horb.ksm.tableeditor/META-INF/MANIFEST.MF | 16 +++++-- de.dhbw.horb.ksm.tableeditor/build.properties | 3 +- de.dhbw.horb.ksm.tableeditor/fragment.xml | 28 ------------ de.dhbw.horb.ksm.tableeditor/plugin.xml | 28 ++++++++++++ .../src/de/dhbw/horb/tableeditor/Activator.java | 50 ++++++++++++++++++++++ 5 files changed, 92 insertions(+), 33 deletions(-) delete mode 100644 de.dhbw.horb.ksm.tableeditor/fragment.xml create mode 100644 de.dhbw.horb.ksm.tableeditor/plugin.xml create mode 100644 de.dhbw.horb.ksm.tableeditor/src/de/dhbw/horb/tableeditor/Activator.java (limited to 'de.dhbw.horb.ksm.tableeditor') diff --git a/de.dhbw.horb.ksm.tableeditor/META-INF/MANIFEST.MF b/de.dhbw.horb.ksm.tableeditor/META-INF/MANIFEST.MF index eda24a5..2ebefa0 100644 --- a/de.dhbw.horb.ksm.tableeditor/META-INF/MANIFEST.MF +++ b/de.dhbw.horb.ksm.tableeditor/META-INF/MANIFEST.MF @@ -3,7 +3,17 @@ Bundle-ManifestVersion: 2 Bundle-Name: KSM TableEditor Bundle-SymbolicName: de.dhbw.horb.ksm.tableeditor;singleton:=true Bundle-Version: 1.0.0.qualifier -Fragment-Host: de.dhbw.horb.ksm.core;bundle-version="1.0.0.qualifier" +Bundle-Activator: de.dhbw.horb.tableeditor.Activator +Require-Bundle: org.eclipse.core.runtime, + org.eclipse.core.resources, + org.eclipse.ui, + org.eclipse.ui.navigator, + org.eclipse.ui.navigator.resources, + org.eclipse.ui.ide;bundle-version="3.6.1", + org.eclipse.ui.views;bundle-version="3.5.0", + org.eclipse.draw2d;bundle-version="3.6.1", + org.eclipse.gef;bundle-version="3.6.1", + de.dhbw.horb.ksm.model;bundle-version="1.0.0", + de.dhbw.horb.ksm.core;bundle-version="1.0.0" Bundle-RequiredExecutionEnvironment: JavaSE-1.6 -Bundle-ClassPath: . -Require-Bundle: org.eclipse.core.boot;bundle-version="3.1.200" +Bundle-ActivationPolicy: lazy diff --git a/de.dhbw.horb.ksm.tableeditor/build.properties b/de.dhbw.horb.ksm.tableeditor/build.properties index a396e88..e9863e2 100644 --- a/de.dhbw.horb.ksm.tableeditor/build.properties +++ b/de.dhbw.horb.ksm.tableeditor/build.properties @@ -2,5 +2,4 @@ source.. = src/ output.. = bin/ bin.includes = META-INF/,\ .,\ - fragment.xml -source.. = src/ + plugin.xml diff --git a/de.dhbw.horb.ksm.tableeditor/fragment.xml b/de.dhbw.horb.ksm.tableeditor/fragment.xml deleted file mode 100644 index 867b95b..0000000 --- a/de.dhbw.horb.ksm.tableeditor/fragment.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - - Table Editor Perspective - - - - diff --git a/de.dhbw.horb.ksm.tableeditor/plugin.xml b/de.dhbw.horb.ksm.tableeditor/plugin.xml new file mode 100644 index 0000000..c5778a6 --- /dev/null +++ b/de.dhbw.horb.ksm.tableeditor/plugin.xml @@ -0,0 +1,28 @@ + + + + + + + + + + + Table Editor Perspective + + + + diff --git a/de.dhbw.horb.ksm.tableeditor/src/de/dhbw/horb/tableeditor/Activator.java b/de.dhbw.horb.ksm.tableeditor/src/de/dhbw/horb/tableeditor/Activator.java new file mode 100644 index 0000000..dcc28d5 --- /dev/null +++ b/de.dhbw.horb.ksm.tableeditor/src/de/dhbw/horb/tableeditor/Activator.java @@ -0,0 +1,50 @@ +package de.dhbw.horb.tableeditor; + +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 = "tableeditor"; //$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; + } + +} -- cgit v1.2.1