Package com._1c.g5.v8.dt.ui
Class V8UiPlugin
java.lang.Object
org.eclipse.core.runtime.Plugin
org.eclipse.ui.plugin.AbstractUIPlugin
com._1c.g5.v8.dt.ui.V8UiPlugin
- All Implemented Interfaces:
org.osgi.framework.BundleActivator
public class V8UiPlugin
extends org.eclipse.ui.plugin.AbstractUIPlugin
The activator class controls the plug-in life cycle
-
Field Summary
FieldsFields 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 org.eclipse.core.runtime.IStatus
createErrorStatus
(String msg, Throwable e) Create new error status with messagestatic org.eclipse.core.runtime.IStatus
Create new warning status with messageorg.eclipse.swt.graphics.Color
getColor
(org.eclipse.swt.graphics.RGB rgb) Returns color for given rgb.static V8UiPlugin
Returns the shared instanceReturns a sharedFormColors
for the using on the form editors.com.google.inject.Injector
static StatusManagerHelper
Returns a sharedFormColors
for the using on the wizards.static org.eclipse.swt.graphics.Image
getWizardImage
(org.eclipse.ui.wizards.IWizardDescriptor wizardDescriptor) Returns cached wizard image for the given wizard descriptor.protected void
initializeImageRegistry
(org.eclipse.jface.resource.ImageRegistry reg) static void
log
(org.eclipse.core.runtime.IStatus status) Logs the status to eclipse logstatic void
Log error with the given message.static void
static void
static void
logWarning
(String message) 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, 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
-
Field Details
-
PLUGIN_ID
- See Also:
-
-
Constructor Details
-
V8UiPlugin
public V8UiPlugin()
-
-
Method Details
-
start
- Specified by:
start
in interfaceorg.osgi.framework.BundleActivator
- Overrides:
start
in classorg.eclipse.ui.plugin.AbstractUIPlugin
- Throws:
Exception
-
stop
- Specified by:
stop
in interfaceorg.osgi.framework.BundleActivator
- Overrides:
stop
in classorg.eclipse.ui.plugin.AbstractUIPlugin
- Throws:
Exception
-
getDefault
Returns the shared instance- Returns:
- the shared instance
-
getInjector
public com.google.inject.Injector getInjector()- Returns:
- plugin injector
-
getWizardImage
public static org.eclipse.swt.graphics.Image getWizardImage(org.eclipse.ui.wizards.IWizardDescriptor wizardDescriptor) Returns cached wizard image for the given wizard descriptor.- Parameters:
wizardDescriptor
- the wizard descriptor to get cached image for, cannot benull
- Returns:
- cached wizard image for the given wizard descriptor, neve
null
-
logError
-
logError
Log error with the given message.- Parameters:
message
- the status message, cannot benull
-
logError
-
logWarning
-
getStatusHandler
-
log
public static void log(org.eclipse.core.runtime.IStatus status) Logs the status to eclipse log- Parameters:
status
- - status with message
-
createErrorStatus
Create new error status with message- Parameters:
message
-String
throwable
-- Returns:
- new instance of
Status
-
createWarningStatus
Create new warning status with message- Parameters:
message
-String
- Returns:
- new instance of
Status
-
getFormColors
Returns a sharedFormColors
for the using on the form editors.- Returns:
- a shared
FormColors
-
getWizardColors
Returns a sharedFormColors
for the using on the wizards.- Returns:
- a shared
FormColors
-
getColor
public org.eclipse.swt.graphics.Color getColor(org.eclipse.swt.graphics.RGB rgb) Returns color for given rgb. User should not dispose returned color.- Parameters:
rgb
- - rgb to get color, cannot benull
.- Returns:
- color for given rgb, never
null
.
-
initializeImageRegistry
protected void initializeImageRegistry(org.eclipse.jface.resource.ImageRegistry reg) - Overrides:
initializeImageRegistry
in classorg.eclipse.ui.plugin.AbstractUIPlugin
-
getEventBroker
-