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.AbstractUIPluginThe activator class controls the plug-in life cycle
- 
- 
Constructor SummaryConstructors Constructor Description V8UiPlugin()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.eclipse.core.runtime.IStatuscreateErrorStatus(String msg, Throwable e)Create new error status with messagestatic org.eclipse.core.runtime.IStatuscreateWarningStatus(String msg)Create new warning status with messagestatic V8UiPlugingetDefault()Returns the shared instanceIEventBrokergetEventBroker()DtFormColorsgetFormColors()Returns a sharedFormColorsfor the using on the form editors.com.google.inject.InjectorgetInjector()static StatusManagerHelpergetStatusHandler()DtFormColorsgetWizardColors()Returns a sharedFormColorsfor the using on the wizards.static org.eclipse.swt.graphics.ImagegetWizardImage(org.eclipse.ui.wizards.IWizardDescriptor wizardDescriptor)Returns cached wizard image for the given wizard descriptor.protected voidinitializeImageRegistry(org.eclipse.jface.resource.ImageRegistry reg)static voidlog(org.eclipse.core.runtime.IStatus status)Logs the status to eclipse logstatic voidlogError(String message)Log error with the given message.static voidlogError(String message, Throwable e)static voidlogError(Throwable e)static voidlogWarning(String message)voidstart(org.osgi.framework.BundleContext context)voidstop(org.osgi.framework.BundleContext context)- 
Methods inherited from class org.eclipse.ui.plugin.AbstractUIPlugincreateImageRegistry, getDialogSettings, getImageRegistry, getPreferenceStore, getWorkbench, imageDescriptorFromPlugin, initializeDefaultPluginPreferences, initializeDefaultPreferences, loadDialogSettings, loadPreferenceStore, refreshPluginActions, saveDialogSettings, savePreferenceStore, shutdown, startup
 
- 
 
- 
- 
- 
Field Detail- 
PLUGIN_IDpublic static final String PLUGIN_ID - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
startpublic void start(org.osgi.framework.BundleContext context) throws Exception- Specified by:
- startin interface- org.osgi.framework.BundleActivator
- Overrides:
- startin class- org.eclipse.ui.plugin.AbstractUIPlugin
- Throws:
- Exception
 
 - 
stoppublic void stop(org.osgi.framework.BundleContext context) throws Exception- Specified by:
- stopin interface- org.osgi.framework.BundleActivator
- Overrides:
- stopin class- org.eclipse.ui.plugin.AbstractUIPlugin
- Throws:
- Exception
 
 - 
getDefaultpublic static V8UiPlugin getDefault() Returns the shared instance- Returns:
- the shared instance
 
 - 
getInjectorpublic com.google.inject.Injector getInjector() - Returns:
- plugin injector
 
 - 
getWizardImagepublic 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 be- null
- Returns:
- cached wizard image for the given wizard descriptor, neve null
 
 - 
logErrorpublic static void logError(Throwable e) 
 - 
logErrorpublic static void logError(String message) Log error with the given message.- Parameters:
- message- the status message, cannot be- null
 
 - 
logWarningpublic static void logWarning(String message) 
 - 
getStatusHandlerpublic static StatusManagerHelper getStatusHandler() 
 - 
logpublic static void log(org.eclipse.core.runtime.IStatus status) Logs the status to eclipse log- Parameters:
- status- - status with message
 
 - 
createErrorStatuspublic static org.eclipse.core.runtime.IStatus createErrorStatus(String msg, Throwable e) Create new error status with message- Parameters:
- message-- String
- throwable-
- Returns:
- new instance of Status
 
 - 
createWarningStatuspublic static org.eclipse.core.runtime.IStatus createWarningStatus(String msg) Create new warning status with message- Parameters:
- message-- String
- Returns:
- new instance of Status
 
 - 
getFormColorspublic DtFormColors getFormColors() Returns a sharedFormColorsfor the using on the form editors.- Returns:
- a shared FormColors
 
 - 
getWizardColorspublic DtFormColors getWizardColors() Returns a sharedFormColorsfor the using on the wizards.- Returns:
- a shared FormColors
 
 - 
initializeImageRegistryprotected void initializeImageRegistry(org.eclipse.jface.resource.ImageRegistry reg) - Overrides:
- initializeImageRegistryin class- org.eclipse.ui.plugin.AbstractUIPlugin
 
 - 
getEventBrokerpublic IEventBroker getEventBroker() 
 
- 
 
-