00001 package org.swtchart.examples;
00002
00003 import org.eclipse.ui.plugin.AbstractUIPlugin;
00004 import org.osgi.framework.BundleContext;
00005
00009 public class Activator extends AbstractUIPlugin {
00010
00012 private static Activator plugin;
00013
00014
00015
00016
00017 @Override
00018 public void start(BundleContext context) throws Exception {
00019 super.start(context);
00020 setPlugin(this);
00021 }
00022
00023
00024
00025
00026 @Override
00027 public void stop(BundleContext context) throws Exception {
00028 setPlugin(null);
00029 super.stop(context);
00030 }
00031
00038 private static void setPlugin(Activator activator) {
00039 plugin = activator;
00040 }
00041
00047 public static Activator getDefault() {
00048 return plugin;
00049 }
00050 }