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
-
Constructor Summary
Constructors Constructor Description PlatformServicesUiPlugin()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.eclipse.core.runtime.IStatus
createErrorStatus(String message)
Create error status by given message.static org.eclipse.core.runtime.IStatus
createErrorStatus(String message, Throwable throwable)
Create error status by given message and cause throwable.static org.eclipse.core.runtime.IStatus
createWarningStatus(String message)
Create warning status by given message.static int
getButtonWidthHint(org.eclipse.swt.widgets.Button button)
Compute given button width.static PlatformServicesUiPlugin
getDefault()
Returns the shared instance.static org.eclipse.swt.graphics.Image
getImage(String symbolicName)
Get image for given symbolic name.static org.eclipse.jface.resource.ImageDescriptor
getImageDescriptor(String symbolicName)
Get image descriptor for given symbolic name.com.google.inject.Injector
getInjector()
Returns the plugin Guice-injector.static org.eclipse.swt.widgets.Shell
getShell()
Gets current active shell.protected void
initializeImageRegistry(org.eclipse.jface.resource.ImageRegistry registry)
boolean
isDebugging()
static void
log(Throwable throwable)
Logs the specifiedThrowable
with this plug-in's log.static void
log(org.eclipse.core.runtime.IStatus status)
Write given status to log.static void
logInfo(String message)
Write given status to log.void
optionsChanged(org.eclipse.osgi.service.debug.DebugOptions options)
void
start(org.osgi.framework.BundleContext context)
void
stop(org.osgi.framework.BundleContext context)
static void
trace(String option, String message)
Prints the provided 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, startup
-
-
-
-
Field Detail
-
ID
public static final String ID
- See Also:
- Constant Field Values
-
TRACE_UPDATE
public static final String TRACE_UPDATE
- See Also:
- Constant Field Values
-
T_OBJ_16
public static final String T_OBJ_16
- See Also:
- Constant Field Values
-
T_ETOOL
public static final String T_ETOOL
- See Also:
- Constant Field Values
-
T_EVIEW
public static final String T_EVIEW
- See Also:
- Constant Field Values
-
T_WIZBAN
public static final String T_WIZBAN
- See Also:
- Constant Field Values
-
T_OVR
public static final String T_OVR
- See Also:
- Constant Field Values
-
IMG_TAB_MAIN
public static final String IMG_TAB_MAIN
- See Also:
- Constant Field Values
-
IMG_DESIGNER
public static final String IMG_DESIGNER
- See Also:
- Constant Field Values
-
IMG_ENTERPRISE
public static final String IMG_ENTERPRISE
- See Also:
- Constant Field Values
-
IMG_RUNTIME
public static final String IMG_RUNTIME
- See Also:
- Constant Field Values
-
IMG_INFOBASE
public static final String IMG_INFOBASE
- See Also:
- Constant Field Values
-
IMG_INFOBASE_FILE
public static final String IMG_INFOBASE_FILE
- See Also:
- Constant Field Values
-
IMG_INFOBASE_SERVER
public static final String IMG_INFOBASE_SERVER
- See Also:
- Constant Field Values
-
IMG_INFOBASE_WEB
public static final String IMG_INFOBASE_WEB
- See Also:
- Constant Field Values
-
IMG_INFOBASE_WEB_DESIGNABLE
public static final String IMG_INFOBASE_WEB_DESIGNABLE
- See Also:
- Constant Field Values
-
IMG_INFOBASE_GROUP
public static final String IMG_INFOBASE_GROUP
- See Also:
- Constant Field Values
-
IMG_INFOBASES_FOLDER
public static final String IMG_INFOBASES_FOLDER
- See Also:
- Constant Field Values
-
IMG_INFOBASE_TEMPLATE
public static final String IMG_INFOBASE_TEMPLATE
- See Also:
- Constant Field Values
-
IMG_WEBSERVER
public static final String IMG_WEBSERVER
- See Also:
- Constant Field Values
-
IMG_COMPONENT_DEFAULT
public static final String IMG_COMPONENT_DEFAULT
- See Also:
- Constant Field Values
-
IMG_INFOBASE_LOADING
public static final String IMG_INFOBASE_LOADING
- See Also:
- Constant Field Values
-
IMG_INFOBASE_SYNCED
public static final String IMG_INFOBASE_SYNCED
- See Also:
- Constant Field Values
-
IMG_INFOBASE_UNSYNCED
public static final String IMG_INFOBASE_UNSYNCED
- See Also:
- Constant Field Values
-
IMG_MOBILE_APPLICATION
public static final String IMG_MOBILE_APPLICATION
- See Also:
- Constant Field Values
-
IMG_REFRESH
public static final String IMG_REFRESH
- See Also:
- Constant Field Values
-
IMG_INFOBASE_DEPLOY
public static final String IMG_INFOBASE_DEPLOY
- See Also:
- Constant Field Values
-
IMG_INFOBASE_PUBLISH
public static final String IMG_INFOBASE_PUBLISH
- See Also:
- Constant Field Values
-
IMG_INFOBASE_NEW
public static final String IMG_INFOBASE_NEW
- See Also:
- Constant Field Values
-
IMG_INFOBASE_EDIT
public static final String IMG_INFOBASE_EDIT
- See Also:
- Constant Field Values
-
IMG_INFOBASE_IMPORT_CONF
public static final String IMG_INFOBASE_IMPORT_CONF
- See Also:
- Constant Field Values
-
IMG_INFOBASE_IMPORT_EXT
public static final String IMG_INFOBASE_IMPORT_EXT
- See Also:
- Constant Field Values
-
IMG_INFOBASE_DUMP
public static final String IMG_INFOBASE_DUMP
- See Also:
- Constant Field Values
-
IMG_INFOBASE_RESTORE
public static final String IMG_INFOBASE_RESTORE
- See Also:
- Constant Field Values
-
IMG_INFOBASE_EXPORT_CONF
public static final String IMG_INFOBASE_EXPORT_CONF
- See Also:
- Constant Field Values
-
IMG_MOBILE_APPLICATION_PUBLISH
public static final String IMG_MOBILE_APPLICATION_PUBLISH
- See Also:
- Constant Field Values
-
IMG_WEBSERVER_NEW
public static final String IMG_WEBSERVER_NEW
- See Also:
- Constant Field Values
-
IMG_WEBSERVER_EDIT
public static final String IMG_WEBSERVER_EDIT
- See Also:
- Constant Field Values
-
IMG_SETTINGS
public static final String IMG_SETTINGS
- See Also:
- Constant Field Values
-
IMG_USER_LIST
public static final String IMG_USER_LIST
- See Also:
- Constant Field Values
-
IMG_INFOBASE_WIZ
public static final String IMG_INFOBASE_WIZ
- See Also:
- Constant Field Values
-
IMG_INFOBASE_FILE_WIZ
public static final String IMG_INFOBASE_FILE_WIZ
- See Also:
- Constant Field Values
-
IMG_INFOBASE_SERVER_WIZ
public static final String IMG_INFOBASE_SERVER_WIZ
- See Also:
- Constant Field Values
-
IMG_INFOBASE_WEB_WIZ
public static final String IMG_INFOBASE_WEB_WIZ
- See Also:
- Constant Field Values
-
IMG_INFOBASE_GROUP_WIZ
public static final String IMG_INFOBASE_GROUP_WIZ
- See Also:
- Constant Field Values
-
IMG_INFOBASE_IMPORT_CONF_WIZ
public static final String IMG_INFOBASE_IMPORT_CONF_WIZ
- See Also:
- Constant Field Values
-
IMG_INFOBASE_DEPLOY_WIZ
public static final String IMG_INFOBASE_DEPLOY_WIZ
- See Also:
- Constant Field Values
-
IMG_INFOBASE_DUMP_WIZ
public static final String IMG_INFOBASE_DUMP_WIZ
- See Also:
- Constant Field Values
-
IMG_INFOBASE_RESTORE_WIZ
public static final String IMG_INFOBASE_RESTORE_WIZ
- See Also:
- Constant Field Values
-
IMG_INFOBASE_EXPORT_CONF_WIZ
public static final String IMG_INFOBASE_EXPORT_CONF_WIZ
- See Also:
- Constant Field Values
-
IMG_RUNTIME_WIZ
public static final String IMG_RUNTIME_WIZ
- See Also:
- Constant Field Values
-
IMG_WEBSERVER_WIZ
public static final String IMG_WEBSERVER_WIZ
- See Also:
- Constant Field Values
-
IMG_INFOBASE_PUBLISH_WIZ
public static final String IMG_INFOBASE_PUBLISH_WIZ
- See Also:
- Constant Field Values
-
IMG_MOBILE_APPLICATION_PUBLISH_WIZ
public static final String IMG_MOBILE_APPLICATION_PUBLISH_WIZ
- See Also:
- Constant Field Values
-
IMG_INFOBASE_ASSOCIATION_WIZ
public static final String IMG_INFOBASE_ASSOCIATION_WIZ
- See Also:
- Constant Field Values
-
IMG_EXTERNAL_OVR
public static final String IMG_EXTERNAL_OVR
- See Also:
- Constant Field Values
-
-
Method Detail
-
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 benull
throwable
- throwable, can benull
if not applicable- Returns:
- status created error status, never
null
-
createErrorStatus
public static org.eclipse.core.runtime.IStatus createErrorStatus(String message)
Create error status by given message.- Parameters:
message
- status message, cannot benull
- Returns:
- status created error status, never
null
-
createWarningStatus
public static org.eclipse.core.runtime.IStatus createWarningStatus(String message)
Create warning status by given message.- Parameters:
message
- status message, cannot benull
- Returns:
- status created warning status, never
null
-
getDefault
public static PlatformServicesUiPlugin getDefault()
Returns the shared instance.- Returns:
- the shared instance
-
getImage
public static org.eclipse.swt.graphics.Image getImage(String symbolicName)
Get image for given symbolic name.- Parameters:
symbolicName
- image name, cannot benull
- Returns:
- image, or
null
if not found
-
getImageDescriptor
public static org.eclipse.jface.resource.ImageDescriptor getImageDescriptor(String symbolicName)
Get image descriptor for given symbolic name.- Parameters:
symbolicName
- image name, cannot benull
- Returns:
- image descriptor, or
null
if not found
-
getShell
public static org.eclipse.swt.widgets.Shell getShell()
Gets current active shell. Can returnnull
.- Returns:
- active shell, can be
null
-
log
public static void log(org.eclipse.core.runtime.IStatus status)
Write given status to log.- Parameters:
status
- status to log, cannot benull
-
log
public static void log(Throwable throwable)
Logs the specifiedThrowable
with this plug-in's log.- Parameters:
throwable
-Throwable
to log
-
logInfo
public static void logInfo(String message)
Write given status to log.- Parameters:
message
- message to log, cannot benull
-
trace
public static void trace(String option, String message)
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") ornull
if nonemessage
- the message to print ornull
if 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:
initializeImageRegistry
in classorg.eclipse.ui.plugin.AbstractUIPlugin
-
isDebugging
public boolean isDebugging()
- Overrides:
isDebugging
in classorg.eclipse.core.runtime.Plugin
-
start
public void start(org.osgi.framework.BundleContext context) throws Exception
- Specified by:
start
in interfaceorg.osgi.framework.BundleActivator
- Overrides:
start
in classorg.eclipse.ui.plugin.AbstractUIPlugin
- Throws:
Exception
-
stop
public void stop(org.osgi.framework.BundleContext context) throws Exception
- Specified by:
stop
in interfaceorg.osgi.framework.BundleActivator
- Overrides:
stop
in classorg.eclipse.ui.plugin.AbstractUIPlugin
- Throws:
Exception
-
optionsChanged
public void optionsChanged(org.eclipse.osgi.service.debug.DebugOptions options)
- Specified by:
optionsChanged
in 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
-
-