Class AutoCompletePlugin

All Implemented Interfaces:
org.osgi.framework.BundleActivator

public class AutoCompletePlugin extends AbstractUIPlugin
The activator class controls the plug-in life cycle.
  • Field Details

  • Constructor Details

    • AutoCompletePlugin

      public AutoCompletePlugin()
  • Method Details

    • getLogger

      public static Logger getLogger()
    • getDefault

      public static AutoCompletePlugin getDefault()
    • getBundleContext

      public static org.osgi.framework.BundleContext getBundleContext()
    • 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
    • loadSettings

      public void loadSettings()
      Load persisted list values.
    • saveSettings

      public void saveSettings()
      Save list values to persistent storage.
    • clearSettings

      public void clearSettings()
      Clear list values from persistent storage.
    • getHistory

      public LinkedList<String> getHistory(String type)
    • getImageFromPlugin

      public Image getImageFromPlugin(String pluginId, String relativePath)
      Load the Image from the given path in the given plugin.
      Parameters:
      pluginId - The id of the plugin that contains the requested image.
      relativePath - The resource path of the requested image.
      Returns:
      The Image from the given path in the given plugin.