Class PlatformServicesUiPlugin
java.lang.Object
org.eclipse.core.runtime.Plugin
org.eclipse.ui.plugin.AbstractUIPlugin
com._1c.g5.v8.dt.platform.services.ui.PlatformServicesUiPlugin
- All Implemented Interfaces:
EventListener,org.eclipse.osgi.service.debug.DebugOptionsListener,org.osgi.framework.BundleActivator
public class PlatformServicesUiPlugin
extends org.eclipse.ui.plugin.AbstractUIPlugin
implements org.eclipse.osgi.service.debug.DebugOptionsListener
The activator class controls the plug-in life cycle.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringGeneric tracing category.static final StringTracing category related to importing infobase into workspace.static final StringTracing category related to relocating applications.static final StringTracing category related to infobase update.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 -
Method Summary
Modifier and TypeMethodDescriptionstatic org.eclipse.core.runtime.IStatuscreateErrorStatus(String message) Create error status by given message.static org.eclipse.core.runtime.IStatuscreateErrorStatus(String message, Throwable throwable) Create error status by given message and cause throwable.static org.eclipse.core.runtime.IStatuscreateWarningStatus(String message) Create warning status by given message.static org.eclipse.core.runtime.IStatuscreateWarningStatus(String message, Throwable throwable) Create warning status by given message and throwable.static intgetButtonWidthHint(org.eclipse.swt.widgets.Button button) Compute given button width.org.eclipse.swt.graphics.ColorgetColor(org.eclipse.swt.graphics.RGB rgb) Returns color for given rgb.static PlatformServicesUiPluginReturns the shared instance.static org.eclipse.swt.graphics.ImageGet image for given symbolic name.static org.eclipse.jface.resource.ImageDescriptorgetImageDescriptor(String symbolicName) Get image descriptor for given symbolic name.com.google.inject.InjectorReturns the plugin Guice-injector.protected voidinitializeImageRegistry(org.eclipse.jface.resource.ImageRegistry registry) booleanstatic voidLogs the specifiedThrowablewith this plug-in's log.static voidlog(org.eclipse.core.runtime.IStatus status) Write given status to log.static voidCreates and logs an error status by the provided message.static voidCreates and logs an error status by the provided message and the cause throwable.static voidWrite given status to log.voidoptionsChanged(org.eclipse.osgi.service.debug.DebugOptions options) voidstart(org.osgi.framework.BundleContext context) voidstop(org.osgi.framework.BundleContext context) static voidPrints the provided message to the OSGi tracing if started and plug-in is in debug mode.static voidLazily prints a message to the OSGi tracing if started and plug-in is in debug mode.static voidLazily prints a message to the OSGi tracing if started and plug-in is in debug mode.Methods 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, openStream, openStream, savePluginPreferences, setDebugging, toString
-
Field Details
-
ID
- See Also:
-
TRACE_GENERIC
Generic tracing category.- See Also:
-
TRACE_UPDATE
Tracing category related to infobase update.- See Also:
-
TRACE_IMPORT
Tracing category related to importing infobase into workspace.- See Also:
-
TRACE_RELOCATE
Tracing category related to relocating applications.- See Also:
-
T_OBJ_16
- See Also:
-
T_ETOOL
- See Also:
-
T_EVIEW
- See Also:
-
T_WIZBAN
- See Also:
-
T_OVR
- See Also:
-
IMG_TAB_MAIN
- See Also:
-
IMG_DESIGNER
- See Also:
-
IMG_ENTERPRISE
- See Also:
-
IMG_RUNTIME
- See Also:
-
IMG_INFOBASE
- See Also:
-
IMG_INFOBASE_FILE
- See Also:
-
IMG_INFOBASE_SERVER
- See Also:
-
IMG_INFOBASE_WEB
- See Also:
-
IMG_INFOBASE_WEB_DESIGNABLE
- See Also:
-
IMG_INFOBASE_GROUP
- See Also:
-
IMG_INFOBASES_FOLDER
- See Also:
-
IMG_INFOBASE_TEMPLATE
- See Also:
-
IMG_WEBSERVER
- See Also:
-
IMG_COMPONENT_DEFAULT
- See Also:
-
IMG_INFOBASE_LOADING
- See Also:
-
IMG_INFOBASE_SYNCED
- See Also:
-
IMG_INFOBASE_UNSYNCED
- See Also:
-
IMG_MOBILE_APPLICATION
- See Also:
-
IMG_REFRESH
- See Also:
-
IMG_INFOBASE_DEPLOY
- See Also:
-
IMG_INFOBASE_PUBLISH
- See Also:
-
IMG_INFOBASE_NEW
- See Also:
-
IMG_INFOBASE_EDIT
- See Also:
-
IMG_INFOBASE_IMPORT_CONF
- See Also:
-
IMG_INFOBASE_IMPORT_EXT
- See Also:
-
IMG_INFOBASE_DUMP
- See Also:
-
IMG_INFOBASE_RESTORE
- See Also:
-
IMG_INFOBASE_EXPORT_CONF
- See Also:
-
IMG_MOBILE_APPLICATION_PUBLISH
- See Also:
-
IMG_WEBSERVER_NEW
- See Also:
-
IMG_WEBSERVER_EDIT
- See Also:
-
IMG_SETTINGS
- See Also:
-
IMG_USER_LIST
- See Also:
-
IMG_INFOBASE_WIZ
- See Also:
-
IMG_INFOBASE_FILE_WIZ
- See Also:
-
IMG_INFOBASE_SERVER_WIZ
- See Also:
-
IMG_INFOBASE_WEB_WIZ
- See Also:
-
IMG_INFOBASE_GROUP_WIZ
- See Also:
-
IMG_INFOBASE_IMPORT_CONF_WIZ
- See Also:
-
IMG_INFOBASE_DEPLOY_WIZ
- See Also:
-
IMG_INFOBASE_DUMP_WIZ
- See Also:
-
IMG_INFOBASE_RESTORE_WIZ
- See Also:
-
IMG_INFOBASE_EXPORT_CONF_WIZ
- See Also:
-
IMG_RUNTIME_WIZ
- See Also:
-
IMG_WEBSERVER_WIZ
- See Also:
-
IMG_INFOBASE_PUBLISH_WIZ
- See Also:
-
IMG_MOBILE_APPLICATION_PUBLISH_WIZ
- See Also:
-
IMG_INFOBASE_ASSOCIATION_WIZ
- See Also:
-
IMG_APPLICATION_WIZARD
- See Also:
-
IMG_EXTERNAL_OVR
- See Also:
-
-
Constructor Details
-
PlatformServicesUiPlugin
public PlatformServicesUiPlugin()
-
-
Method Details
-
createErrorStatus
public static org.eclipse.core.runtime.IStatus createErrorStatus(String message, Throwable throwable) Create error status by given message and cause throwable.- Parameters:
message- status message, cannot benullthrowable- throwable, can benullif not applicable- Returns:
- status created error status, never
null
-
createErrorStatus
Create error status by given message.- Parameters:
message- status message, cannot benull- Returns:
- status created error status, never
null
-
createWarningStatus
Create warning status by given message.- Parameters:
message- status message, cannot benull- Returns:
- status created warning status, never
null
-
createWarningStatus
public static org.eclipse.core.runtime.IStatus createWarningStatus(String message, Throwable throwable) Create warning status by given message and throwable.- Parameters:
message- status message, cannot benullthrowable- throwable, can benullif not applicable- Returns:
- status created warning status, never
null
-
getDefault
Returns the shared instance.- Returns:
- the shared instance
-
getImage
Get image for given symbolic name.- Parameters:
symbolicName- image name, cannot benull- Returns:
- image, or
nullif not found
-
getImageDescriptor
Get image descriptor for given symbolic name.- Parameters:
symbolicName- image name, cannot benull- Returns:
- image descriptor, or
nullif not found
-
log
public static void log(org.eclipse.core.runtime.IStatus status) Write given status to log.- Parameters:
status- status to log, cannot benull
-
log
Logs the specifiedThrowablewith this plug-in's log.- Parameters:
throwable-Throwableto log
-
logError
Creates and logs an error status by the provided message.- Parameters:
message- the status message, cannot benull
-
logError
Creates and logs an error status by the provided message and the cause throwable.- Parameters:
message- the status message, cannot benullthrowable- the cause throwable, can benullif not applicable
-
logInfo
Write given status to log.- Parameters:
message- message to log, cannot benull
-
trace
Prints the provided message to the OSGi tracing if started and plug-in is in debug mode.- Parameters:
option- the option that will control whether the trace statement is printed (e.g., "/debug/myComponent") ornullif nonemessage- the message to print ornullif none
-
trace
Lazily prints a message to the OSGi tracing if started and plug-in is in debug mode.- Parameters:
option- the option that will control whether the trace statement is printed (e.g., "/debug/myComponent") ornullif nonemessageSupplier- Supplier of lazy message that is to be printed. Must not benull.
-
trace
Lazily prints a message to the OSGi tracing if started and plug-in is in debug mode. The message is evaluated and printed only in plugin is in debug mode and specified trace option is enabled.- Parameters:
traceOption- Option to be checked if tracing should be done ornullif no option should be checked.messageSupplier- Supplier for the lazily evaluated message. Must not benull.error- Exception to be attached to the message ornullif none.
-
getButtonWidthHint
public static int getButtonWidthHint(org.eclipse.swt.widgets.Button button) Compute given button width.- Parameters:
button- button to compute width for, cannot benull- Returns:
- button width
-
initializeImageRegistry
protected void initializeImageRegistry(org.eclipse.jface.resource.ImageRegistry registry) - Overrides:
initializeImageRegistryin classorg.eclipse.ui.plugin.AbstractUIPlugin
-
isDebugging
public boolean isDebugging()- Overrides:
isDebuggingin classorg.eclipse.core.runtime.Plugin
-
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
-
optionsChanged
public void optionsChanged(org.eclipse.osgi.service.debug.DebugOptions options) - Specified by:
optionsChangedin interfaceorg.eclipse.osgi.service.debug.DebugOptionsListener
-
getInjector
public com.google.inject.Injector getInjector()Returns the plugin Guice-injector. Method is synchronized.- Returns:
- plugin Guice-injector, 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.
-