Improve error reporting in the branch dialog
[egit/imyousuf.git] / org.spearce.egit.core.test / src / org / spearce / egit / core / test / Activator.java
blob6b9f236dcc584b9cf37c2cf4a2e7b62767a266b1
1 /*******************************************************************************
2 * Copyright (C) 2008, Robin Rosenberg <robin.rosenberg@dewire.com>
4 * All rights reserved. This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License v1.0
6 * See LICENSE for the full license text, also available.
7 *******************************************************************************/
8 package org.spearce.egit.core.test;
10 import org.eclipse.core.runtime.Plugin;
11 import org.osgi.framework.BundleContext;
13 /**
14 * The activator class controls the plug-in life cycle
16 public class Activator extends Plugin {
18 // The plug-in ID
19 public static final String PLUGIN_ID = "org.spearce.egit.core.test";
21 // The shared instance
22 private static Activator plugin;
24 /**
25 * The constructor
27 public Activator() {
28 // Empty
32 * (non-Javadoc)
33 * @see org.eclipse.core.runtime.Plugins#start(org.osgi.framework.BundleContext)
35 public void start(BundleContext context) throws Exception {
36 super.start(context);
37 plugin = this;
41 * (non-Javadoc)
42 * @see org.eclipse.core.runtime.Plugin#stop(org.osgi.framework.BundleContext)
44 public void stop(BundleContext context) throws Exception {
45 plugin = null;
46 super.stop(context);
49 /**
50 * Returns the shared instance
52 * @return the shared instance
54 public static Activator getDefault() {
55 return plugin;