Add a JUnit test project for egit.
[egit.git] / org.spearce.egit.core.test / src / org / spearce / egit / core / test / Activator.java
blob9807c84743dae60e30e20db6addab525c7e51628
1 package org.spearce.egit.core.test;
3 import org.eclipse.core.runtime.Plugin;
4 import org.osgi.framework.BundleContext;
6 /**
7 * The activator class controls the plug-in life cycle
8 */
9 public class Activator extends Plugin {
11 // The plug-in ID
12 public static final String PLUGIN_ID = "org.spearce.egit.core.test";
14 // The shared instance
15 private static Activator plugin;
17 /**
18 * The constructor
20 public Activator() {
24 * (non-Javadoc)
25 * @see org.eclipse.core.runtime.Plugins#start(org.osgi.framework.BundleContext)
27 public void start(BundleContext context) throws Exception {
28 super.start(context);
29 plugin = this;
33 * (non-Javadoc)
34 * @see org.eclipse.core.runtime.Plugin#stop(org.osgi.framework.BundleContext)
36 public void stop(BundleContext context) throws Exception {
37 plugin = null;
38 super.stop(context);
41 /**
42 * Returns the shared instance
44 * @return the shared instance
46 public static Activator getDefault() {
47 return plugin;