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     // The plug-in ID
00013     public static final String PLUGIN_ID = "edu.rice.cs.hpc.filter"; //$NON-NLS-1$
00014 
00015     // The shared instance
00016     private static Activator plugin;
00017     
00021     public Activator() {
00022     }
00023 
00024     /*
00025      * (non-Javadoc)
00026      * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
00027      */
00028     public void start(BundleContext context) throws Exception {
00029         super.start(context);
00030         plugin = this;
00031     }
00032 
00033     /*
00034      * (non-Javadoc)
00035      * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
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 }

Generated on 5 May 2015 for HPCVIEWER by  doxygen 1.6.1