Class OOEclipsePlugin

java.lang.Object
org.eclipse.core.runtime.Plugin
org.eclipse.ui.plugin.AbstractUIPlugin
org.libreoffice.ide.eclipse.core.OOEclipsePlugin
All Implemented Interfaces:
org.osgi.framework.BundleActivator

public class OOEclipsePlugin extends org.eclipse.ui.plugin.AbstractUIPlugin
Plugin entry point, it is used by Eclipse as a bundle.

This class contains the main constants of the plugin, like its ID, the UNO project nature. The internationalization method is provided in this class too.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.eclipse.swt.graphics.RGB
     
    static final org.eclipse.swt.graphics.RGB
     
    static final org.eclipse.swt.graphics.RGB
     
    static final org.eclipse.swt.graphics.RGB
     
    static final org.eclipse.swt.graphics.RGB
     
    static final String
    Log level preference key, used to store the preferences.
    static final org.eclipse.swt.graphics.RGB
     
    static final String
    ooeclipseintegration plugin id.
    static final String
    Plugin home relative path for the ooo configuration file.
    static final org.eclipse.swt.graphics.RGB
     
    static final org.eclipse.swt.graphics.RGB
     
    static final org.eclipse.swt.graphics.RGB
     
    static final String
    Uno idl editor ID.
    static final String
    uno nature id.
    static final org.eclipse.swt.graphics.RGB
     

    Fields inherited from class org.eclipse.core.runtime.Plugin

    PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME
  • Constructor Summary

    Constructors
    Constructor
    Description
    The constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    static org.eclipse.swt.graphics.Image
    Returns the image corresponding to the provided key.
    static org.eclipse.jface.resource.ImageDescriptor
    Returns the image descriptor corresponding to the provided key.
    Returns the image manager.
    static void
    Method that initialize the default preferences of the plugin.
    void
    start(org.osgi.framework.BundleContext context)
    void
    stop(org.osgi.framework.BundleContext context)

    Methods inherited from class org.eclipse.ui.plugin.AbstractUIPlugin

    createImageRegistry, getDialogSettings, getImageRegistry, getPreferenceStore, getWorkbench, imageDescriptorFromPlugin, initializeDefaultPluginPreferences, initializeDefaultPreferences, initializeImageRegistry, loadDialogSettings, loadPreferenceStore, refreshPluginActions, saveDialogSettings, savePreferenceStore, shutdown, startup

    Methods inherited from class org.eclipse.core.runtime.Plugin

    find, find, getBundle, getLog, getPluginPreferences, getStateLocation, internalInitializeDefaultPluginPreferences, isDebugging, openStream, openStream, savePluginPreferences, setDebugging, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • OOO_CONFIG

      public static final String OOO_CONFIG
      Plugin home relative path for the ooo configuration file.
      See Also:
    • OOECLIPSE_PLUGIN_ID

      public static final String OOECLIPSE_PLUGIN_ID
      ooeclipseintegration plugin id.
      See Also:
    • UNO_NATURE_ID

      public static final String UNO_NATURE_ID
      uno nature id.
      See Also:
    • UNO_EDITOR_ID

      public static final String UNO_EDITOR_ID
      Uno idl editor ID.
      See Also:
    • LOGLEVEL_PREFERENCE_KEY

      public static final String LOGLEVEL_PREFERENCE_KEY
      Log level preference key, used to store the preferences.
      See Also:
    • STRING

      public static final org.eclipse.swt.graphics.RGB STRING
    • BACKGROUND

      public static final org.eclipse.swt.graphics.RGB BACKGROUND
    • DEFAULT

      public static final org.eclipse.swt.graphics.RGB DEFAULT
    • KEYWORD

      public static final org.eclipse.swt.graphics.RGB KEYWORD
    • TYPE

      public static final org.eclipse.swt.graphics.RGB TYPE
    • COMMENT

      public static final org.eclipse.swt.graphics.RGB COMMENT
    • DOC_COMMENT

      public static final org.eclipse.swt.graphics.RGB DOC_COMMENT
    • XML_TAG

      public static final org.eclipse.swt.graphics.RGB XML_TAG
    • MODIFIER

      public static final org.eclipse.swt.graphics.RGB MODIFIER
    • PREPROCESSOR_COMMAND

      public static final org.eclipse.swt.graphics.RGB PREPROCESSOR_COMMAND
  • Constructor Details

    • OOEclipsePlugin

      public OOEclipsePlugin()
      The constructor.
  • Method Details

    • start

      public void start(org.osgi.framework.BundleContext context) throws Exception
      Specified by:
      start in interface org.osgi.framework.BundleActivator
      Overrides:
      start in class org.eclipse.ui.plugin.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 org.eclipse.ui.plugin.AbstractUIPlugin
      Throws:
      Exception
    • getDefault

      public static OOEclipsePlugin getDefault()
      Returns:
      the instance of the OOo Eclipse bundle.
    • getImageManager

      public ImageManager getImageManager()
      Returns the image manager. If it is null, this method wil create it before using it.
      Returns:
      the image manager
    • getImage

      public static org.eclipse.swt.graphics.Image getImage(String key)
      Returns the image corresponding to the provided key. If the image file or the key doesn't exists, the method returns null.
      Parameters:
      key - Key designing the image
      Returns:
      the image associated to the key
      See Also:
    • getImageDescriptor

      public static org.eclipse.jface.resource.ImageDescriptor getImageDescriptor(String key)
      Returns the image descriptor corresponding to the provided key. If the image file or the key doesn't exists, the method returns null.
      Parameters:
      key - Key designing the image
      Returns:
      the image descriptor associated to the key
      See Also:
    • setDefaultPreferences

      public static void setDefaultPreferences()
      Method that initialize the default preferences of the plugin.