diff --git a/launch/org.eclipse.cdt.launchbar.cdt.core/.classpath b/launch/org.eclipse.cdt.launchbar.cdt.core/.classpath new file mode 100644 index 00000000000..098194ca4b7 --- /dev/null +++ b/launch/org.eclipse.cdt.launchbar.cdt.core/.classpath @@ -0,0 +1,7 @@ + + + + + + + diff --git a/launch/org.eclipse.cdt.launchbar.cdt.core/.project b/launch/org.eclipse.cdt.launchbar.cdt.core/.project new file mode 100644 index 00000000000..b4e80a8ddba --- /dev/null +++ b/launch/org.eclipse.cdt.launchbar.cdt.core/.project @@ -0,0 +1,28 @@ + + + org.eclipse.cdt.launchbar.cdt.core + + + + + + 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/launch/org.eclipse.cdt.launchbar.cdt.core/.settings/org.eclipse.jdt.core.prefs b/launch/org.eclipse.cdt.launchbar.cdt.core/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 00000000000..f42de363afa --- /dev/null +++ b/launch/org.eclipse.cdt.launchbar.cdt.core/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,7 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 +org.eclipse.jdt.core.compiler.compliance=1.7 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.source=1.7 diff --git a/launch/org.eclipse.cdt.launchbar.cdt.core/src/org/eclipse/cdt/launchbar/cdt/core/Activator.java b/launch/org.eclipse.cdt.launchbar.cdt.core/src/org/eclipse/cdt/launchbar/cdt/core/Activator.java new file mode 100644 index 00000000000..fcc4435a557 --- /dev/null +++ b/launch/org.eclipse.cdt.launchbar.cdt.core/src/org/eclipse/cdt/launchbar/cdt/core/Activator.java @@ -0,0 +1,30 @@ +package org.eclipse.cdt.launchbar.cdt.core; + +import org.osgi.framework.BundleActivator; +import org.osgi.framework.BundleContext; + +public class Activator implements BundleActivator { + + private static BundleContext context; + + static BundleContext getContext() { + return context; + } + + /* + * (non-Javadoc) + * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext) + */ + public void start(BundleContext bundleContext) throws Exception { + Activator.context = bundleContext; + } + + /* + * (non-Javadoc) + * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext) + */ + public void stop(BundleContext bundleContext) throws Exception { + Activator.context = null; + } + +}