From d99fac83ac0b02c2e8d1e93c18a25a3c92539726 Mon Sep 17 00:00:00 2001 From: yvesf Date: Mon, 9 May 2011 23:37:38 +0200 Subject: Vor-Ergebnisse Studienarbeit --- de.dhbw.horb.ksm.qksm/.classpath | 7 +++ de.dhbw.horb.ksm.qksm/.gitignore | 1 + de.dhbw.horb.ksm.qksm/.project | 28 ++++++++++++ .../.settings/org.eclipse.jdt.core.prefs | 8 ++++ de.dhbw.horb.ksm.qksm/META-INF/MANIFEST.MF | 11 +++++ de.dhbw.horb.ksm.qksm/build.properties | 5 +++ de.dhbw.horb.ksm.qksm/plugin.xml | 13 ++++++ .../src/de/dhbw/horb/ksm/qksm/Activator.java | 50 ++++++++++++++++++++++ .../qksm/QKSMNodePropertyDescriptorAdvisor.java | 12 ++++++ 9 files changed, 135 insertions(+) create mode 100644 de.dhbw.horb.ksm.qksm/.classpath create mode 100644 de.dhbw.horb.ksm.qksm/.gitignore create mode 100644 de.dhbw.horb.ksm.qksm/.project create mode 100644 de.dhbw.horb.ksm.qksm/.settings/org.eclipse.jdt.core.prefs create mode 100644 de.dhbw.horb.ksm.qksm/META-INF/MANIFEST.MF create mode 100644 de.dhbw.horb.ksm.qksm/build.properties create mode 100644 de.dhbw.horb.ksm.qksm/plugin.xml create mode 100644 de.dhbw.horb.ksm.qksm/src/de/dhbw/horb/ksm/qksm/Activator.java create mode 100644 de.dhbw.horb.ksm.qksm/src/de/dhbw/horb/ksm/qksm/QKSMNodePropertyDescriptorAdvisor.java (limited to 'de.dhbw.horb.ksm.qksm') diff --git a/de.dhbw.horb.ksm.qksm/.classpath b/de.dhbw.horb.ksm.qksm/.classpath new file mode 100644 index 0000000..ad32c83 --- /dev/null +++ b/de.dhbw.horb.ksm.qksm/.classpath @@ -0,0 +1,7 @@ + + + + + + + diff --git a/de.dhbw.horb.ksm.qksm/.gitignore b/de.dhbw.horb.ksm.qksm/.gitignore new file mode 100644 index 0000000..e660fd9 --- /dev/null +++ b/de.dhbw.horb.ksm.qksm/.gitignore @@ -0,0 +1 @@ +bin/ diff --git a/de.dhbw.horb.ksm.qksm/.project b/de.dhbw.horb.ksm.qksm/.project new file mode 100644 index 0000000..2df984b --- /dev/null +++ b/de.dhbw.horb.ksm.qksm/.project @@ -0,0 +1,28 @@ + + + de.dhbw.horb.ksm.qksm + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + + org.eclipse.pde.PluginNature + org.eclipse.jdt.core.javanature + + diff --git a/de.dhbw.horb.ksm.qksm/.settings/org.eclipse.jdt.core.prefs b/de.dhbw.horb.ksm.qksm/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..374f01e --- /dev/null +++ b/de.dhbw.horb.ksm.qksm/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,8 @@ +#Fri Apr 29 22:08:31 CEST 2011 +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 +org.eclipse.jdt.core.compiler.compliance=1.6 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.source=1.6 diff --git a/de.dhbw.horb.ksm.qksm/META-INF/MANIFEST.MF b/de.dhbw.horb.ksm.qksm/META-INF/MANIFEST.MF new file mode 100644 index 0000000..353b055 --- /dev/null +++ b/de.dhbw.horb.ksm.qksm/META-INF/MANIFEST.MF @@ -0,0 +1,11 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: Qksm +Bundle-SymbolicName: de.dhbw.horb.ksm.qksm;singleton:=true +Bundle-Version: 1.0.0.qualifier +Bundle-Activator: de.dhbw.horb.ksm.qksm.Activator +Require-Bundle: org.eclipse.ui, + org.eclipse.core.runtime, + de.dhbw.horb.ksm.core;bundle-version="1.0.0" +Bundle-ActivationPolicy: lazy +Bundle-RequiredExecutionEnvironment: JavaSE-1.6 diff --git a/de.dhbw.horb.ksm.qksm/build.properties b/de.dhbw.horb.ksm.qksm/build.properties new file mode 100644 index 0000000..e9863e2 --- /dev/null +++ b/de.dhbw.horb.ksm.qksm/build.properties @@ -0,0 +1,5 @@ +source.. = src/ +output.. = bin/ +bin.includes = META-INF/,\ + .,\ + plugin.xml diff --git a/de.dhbw.horb.ksm.qksm/plugin.xml b/de.dhbw.horb.ksm.qksm/plugin.xml new file mode 100644 index 0000000..14f01db --- /dev/null +++ b/de.dhbw.horb.ksm.qksm/plugin.xml @@ -0,0 +1,13 @@ + + + + + + + + + diff --git a/de.dhbw.horb.ksm.qksm/src/de/dhbw/horb/ksm/qksm/Activator.java b/de.dhbw.horb.ksm.qksm/src/de/dhbw/horb/ksm/qksm/Activator.java new file mode 100644 index 0000000..33fb4e7 --- /dev/null +++ b/de.dhbw.horb.ksm.qksm/src/de/dhbw/horb/ksm/qksm/Activator.java @@ -0,0 +1,50 @@ +package de.dhbw.horb.ksm.qksm; + +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 = "de.dhbw.horb.ksm.qksm"; //$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; + } + +} diff --git a/de.dhbw.horb.ksm.qksm/src/de/dhbw/horb/ksm/qksm/QKSMNodePropertyDescriptorAdvisor.java b/de.dhbw.horb.ksm.qksm/src/de/dhbw/horb/ksm/qksm/QKSMNodePropertyDescriptorAdvisor.java new file mode 100644 index 0000000..26f4b5b --- /dev/null +++ b/de.dhbw.horb.ksm.qksm/src/de/dhbw/horb/ksm/qksm/QKSMNodePropertyDescriptorAdvisor.java @@ -0,0 +1,12 @@ +package de.dhbw.horb.ksm.qksm; + +import de.dhbw.horb.ksm.core.extension.AbstractPropertyDescriptorAdvisor; + +public class QKSMNodePropertyDescriptorAdvisor extends + AbstractPropertyDescriptorAdvisor { + + @Override + protected void init() { + addProperty("string:foobar", "foobar"); + } +} -- cgit v1.2.1