Package org.libreoffice.ide.eclipse.core
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
FieldsModifier and TypeFieldDescriptionstatic final org.eclipse.swt.graphics.RGBstatic final org.eclipse.swt.graphics.RGBstatic final org.eclipse.swt.graphics.RGBstatic final org.eclipse.swt.graphics.RGBstatic final org.eclipse.swt.graphics.RGBstatic final StringLog level preference key, used to store the preferences.static final org.eclipse.swt.graphics.RGBstatic final Stringooeclipseintegration plugin id.static final StringPlugin home relative path for the ooo configuration file.static final org.eclipse.swt.graphics.RGBstatic final org.eclipse.swt.graphics.RGBstatic final org.eclipse.swt.graphics.RGBstatic final StringUno idl editor ID.static final Stringuno nature id.static final org.eclipse.swt.graphics.RGBFields inherited from class org.eclipse.core.runtime.Plugin
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic OOEclipsePluginstatic org.eclipse.swt.graphics.ImageReturns the image corresponding to the provided key.static org.eclipse.jface.resource.ImageDescriptorgetImageDescriptor(String key) Returns the image descriptor corresponding to the provided key.Returns the image manager.static voidMethod that initialize the default preferences of the plugin.voidstart(org.osgi.framework.BundleContext context) voidstop(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, startupMethods inherited from class org.eclipse.core.runtime.Plugin
find, find, getBundle, getLog, getPluginPreferences, getStateLocation, internalInitializeDefaultPluginPreferences, isDebugging, openStream, openStream, savePluginPreferences, setDebugging, toString
-
Field Details
-
OOO_CONFIG
Plugin home relative path for the ooo configuration file.- See Also:
-
OOECLIPSE_PLUGIN_ID
ooeclipseintegration plugin id.- See Also:
-
UNO_NATURE_ID
uno nature id.- See Also:
-
UNO_EDITOR_ID
Uno idl editor ID.- See Also:
-
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
- Specified by:
startin interfaceorg.osgi.framework.BundleActivator- Overrides:
startin classorg.eclipse.ui.plugin.AbstractUIPlugin- Throws:
Exception
-
stop
- Specified by:
stopin interfaceorg.osgi.framework.BundleActivator- Overrides:
stopin classorg.eclipse.ui.plugin.AbstractUIPlugin- Throws:
Exception
-
getDefault
- Returns:
- the instance of the OOo Eclipse bundle.
-
getImageManager
Returns the image manager. If it is null, this method wil create it before using it.- Returns:
- the image manager
-
getImage
Returns the image corresponding to the provided key. If the image file or the key doesn't exists, the method returnsnull.- Parameters:
key- Key designing the image- Returns:
- the image associated to the key
- See Also:
-
getImageDescriptor
Returns the image descriptor corresponding to the provided key. If the image file or the key doesn't exists, the method returnsnull.- 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.
-