Package com._1c.g5.v8.dt.internal.bsl.ui
Class BslUiPlugin
java.lang.Object
org.eclipse.core.runtime.Plugin
org.eclipse.ui.plugin.AbstractUIPlugin
com._1c.g5.v8.dt.bsl.ui.internal.BslActivator
com._1c.g5.v8.dt.internal.bsl.ui.BslUiPlugin
- All Implemented Interfaces:
org.osgi.framework.BundleActivator
public class BslUiPlugin
extends com._1c.g5.v8.dt.bsl.ui.internal.BslActivator
Plugin for Bsl
-
Field Summary
FieldsFields inherited from class com._1c.g5.v8.dt.bsl.ui.internal.BslActivator
COM__1C_G5_V8_DT_BSL_BSLFields 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.IStatuscreateErrorStatus(String msg, Throwable e) protected com.google.inject.InjectorcreateInjector(String language) Creates injector for the bundle.static org.eclipse.core.runtime.IStatusorg.eclipse.swt.graphics.ColorgetColor(org.eclipse.swt.graphics.RGB rgb) Returns color for given rgb.static BslUiPluginReturns the shared instancestatic org.eclipse.swt.graphics.Imagestatic org.eclipse.jface.resource.ImageDescriptorgetImageDescriptor(String symbolicName) List<com.google.inject.Module>Returns list of plugin guice modules for given language.protected voidinitializeImageRegistry(org.eclipse.jface.resource.ImageRegistry reg) static voidlog(org.eclipse.core.runtime.IStatus status) static voidWrites a throwable to the plugin log as error status.voidstart(org.osgi.framework.BundleContext context) voidstop(org.osgi.framework.BundleContext context) Methods inherited from class com._1c.g5.v8.dt.bsl.ui.internal.BslActivator
getInjector, getInstance, getRuntimeModule, getSharedStateModule, getUiModuleMethods inherited from class org.eclipse.ui.plugin.AbstractUIPlugin
createImageRegistry, getDialogSettings, getImageRegistry, getPreferenceStore, getWorkbench, imageDescriptorFromPlugin, initializeDefaultPluginPreferences, initializeDefaultPreferences, 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
-
PLUGIN_ID
- See Also:
-
-
Constructor Details
-
BslUiPlugin
public BslUiPlugin()
-
-
Method Details
-
getDefault
Returns the shared instance- Returns:
- the shared instance, never
null
-
log
public static void log(org.eclipse.core.runtime.IStatus status) -
logError
Writes a throwable to the plugin log as error status.- Parameters:
throwable- throwable, cannot benull
-
createErrorStatus
-
createWarningStatus
-
getImage
-
getImageDescriptor
-
start
- Specified by:
startin interfaceorg.osgi.framework.BundleActivator- Overrides:
startin classcom._1c.g5.v8.dt.bsl.ui.internal.BslActivator- Throws:
Exception
-
stop
- Specified by:
stopin interfaceorg.osgi.framework.BundleActivator- Overrides:
stopin classcom._1c.g5.v8.dt.bsl.ui.internal.BslActivator- Throws:
Exception
-
getModules
Returns list of plugin guice modules for given language.- Returns:
- list of plugin guice modules for given language, never
null
-
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:
initializeImageRegistryin classorg.eclipse.ui.plugin.AbstractUIPlugin
-
createInjector
Creates injector for the bundle.
Note!
Here should not create new injector via {@link Injector.createChildInjector()} - because we need to use common injector with BSL-core. All UI dependencies contributes withBslUiContributorModuleinto BSL-core extension point.
After declared all BSL-core's services in Guice-modules this restriction may be removed and this UI bundle may create its own child injector.- Overrides:
createInjectorin classcom._1c.g5.v8.dt.bsl.ui.internal.BslActivator
-