Class Activator

All Implemented Interfaces:
org.osgi.framework.BundleActivator

public class Activator extends AbstractUIPlugin
  • Field Details

  • Constructor Details

    • Activator

      public Activator()
  • Method Details

    • getDefault

      public static Activator getDefault()
    • start

      public void start(org.osgi.framework.BundleContext context) throws Exception
      Specified by:
      start in interface org.osgi.framework.BundleActivator
      Overrides:
      start in class AbstractUIPlugin
      Throws:
      Exception
    • stop

      public void stop(org.osgi.framework.BundleContext context) throws Exception
      Specified by:
      stop in interface org.osgi.framework.BundleActivator
      Overrides:
      stop in class AbstractUIPlugin
      Throws:
      Exception
    • getContext

      public org.osgi.framework.BundleContext getContext()
    • getImageDescriptor

      public static ImageDescriptor getImageDescriptor(String path)
      Returns an image descriptor for the image file at the given plug-in relative path
      Parameters:
      path - the path
      Returns:
      the image descriptor
    • getImageDescriptor

      public static ImageDescriptor getImageDescriptor(String bundleID, String path)
    • getImage

      public static Image getImage(String bundleID, String path, boolean storeToImageRegistry)
    • getPluginIconImage

      public static Image getPluginIconImage(String pluginId, String iconPath)
      This method returns an org.eclipse.swt.graphics.Image identified by its pluginId and iconPath.
    • getLocalPluginIconImage

      public static Image getLocalPluginIconImage(String iconPath)
    • getLocalImageDescriptor

      public static ImageDescriptor getLocalImageDescriptor(String iconPath)
    • getResource

      public static InputStream getResource(String path)