Remember to dispose the clipboard after use
[egit.git] / org.eclipse.egit.ui.test / src / org / eclipse / egit / ui / test / Activator.java
blobce8a61c46c92da35e418b0e5d1f1c1f5c8cc8c3f
1 /*******************************************************************************
2 * Copyright (C) 2009, 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 * which accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
8 *******************************************************************************/
9 package org.eclipse.egit.ui.test;
11 import org.eclipse.core.runtime.Plugin;
12 import org.osgi.framework.BundleContext;
14 /**
15 * The activator class controls the plug-in life cycle
17 public class Activator extends Plugin {
19 // The plug-in ID
20 public static final String PLUGIN_ID = "org.eclipse.egit.ui.test";
22 // The shared instance
23 private static Activator plugin;
25 /**
26 * The constructor
28 public Activator() {
29 // Empty
33 * (non-Javadoc)
34 * @see org.eclipse.core.runtime.Plugins#start(org.osgi.framework.BundleContext)
36 public void start(BundleContext context) throws Exception {
37 super.start(context);
38 plugin = this;
42 * (non-Javadoc)
43 * @see org.eclipse.core.runtime.Plugin#stop(org.osgi.framework.BundleContext)
45 public void stop(BundleContext context) throws Exception {
46 plugin = null;
47 super.stop(context);
50 /**
51 * @return the shared instance
53 public static Activator getDefault() {
54 return plugin;