summaryrefslogtreecommitdiff
path: root/de.dhbw.horb.ksm.tableeditor
diff options
context:
space:
mode:
authoryvesf <yvesf-git@xapek.org>2011-05-13 19:06:56 +0200
committeryvesf <yvesf-git@xapek.org>2011-05-21 11:00:42 +0200
commit83ec6cd048be645225c08265eb86b35e811dd1c9 (patch)
treeb5876b908202e57cb3dc5347d059d3fb51b932e1 /de.dhbw.horb.ksm.tableeditor
parentd99fac83ac0b02c2e8d1e93c18a25a3c92539726 (diff)
downloadksm-rcp-83ec6cd048be645225c08265eb86b35e811dd1c9.tar.gz
ksm-rcp-83ec6cd048be645225c08265eb86b35e811dd1c9.zip
Ende Fischer '11
Diffstat (limited to 'de.dhbw.horb.ksm.tableeditor')
-rw-r--r--de.dhbw.horb.ksm.tableeditor/META-INF/MANIFEST.MF16
-rw-r--r--de.dhbw.horb.ksm.tableeditor/build.properties3
-rw-r--r--de.dhbw.horb.ksm.tableeditor/plugin.xml (renamed from de.dhbw.horb.ksm.tableeditor/fragment.xml)6
-rw-r--r--de.dhbw.horb.ksm.tableeditor/src/de/dhbw/horb/tableeditor/Activator.java50
4 files changed, 67 insertions, 8 deletions
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/plugin.xml
index 867b95b..c5778a6 100644
--- a/de.dhbw.horb.ksm.tableeditor/fragment.xml
+++ b/de.dhbw.horb.ksm.tableeditor/plugin.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
-<fragment>
- <extension
+<plugin>
+ <extension
point="org.eclipse.ui.views">
<view
category="ksm.core.views.KSMCategory"
@@ -25,4 +25,4 @@
</description>
</perspective>
</extension>
-</fragment>
+</plugin>
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;
+ }
+
+}