Activator.java
Go to the documentation of this file.00001 package edu.rice.cs.hpc.filter;
00002
00003 import org.eclipse.jface.resource.ImageDescriptor;
00004 import org.eclipse.ui.plugin.AbstractUIPlugin;
00005 import org.osgi.framework.BundleContext;
00006
00010 public class Activator extends AbstractUIPlugin {
00011
00012
00013 public static final String PLUGIN_ID = "edu.rice.cs.hpc.filter";
00014
00015
00016 private static Activator plugin;
00017
00021 public Activator() {
00022 }
00023
00024
00025
00026
00027
00028 public void start(BundleContext context) throws Exception {
00029 super.start(context);
00030 plugin = this;
00031 }
00032
00033
00034
00035
00036
00037 public void stop(BundleContext context) throws Exception {
00038 plugin = null;
00039 super.stop(context);
00040 }
00041
00047 public static Activator getDefault() {
00048 return plugin;
00049 }
00050
00058 public static ImageDescriptor getImageDescriptor(String path) {
00059 return imageDescriptorFromPlugin(PLUGIN_ID, path);
00060 }
00061 }