Class BslUITemplatesPlugin
- java.lang.Object
-
- org.eclipse.core.runtime.Plugin
-
- org.eclipse.ui.plugin.AbstractUIPlugin
-
- com.e1c.g5.v8.dt.bsl.ui.templates.BslUITemplatesPlugin
-
- All Implemented Interfaces:
org.osgi.framework.BundleActivator
public class BslUITemplatesPlugin extends org.eclipse.ui.plugin.AbstractUIPlugin
This class represents this plug-in. Shall not be created manually
-
-
Constructor Summary
Constructors Constructor Description BslUITemplatesPlugin()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.eclipse.core.runtime.IStatus
createErrorStatus(String msg, Throwable e)
Creates errorIStatus
by the message andThrowable
static org.eclipse.core.runtime.IStatus
createWarningStatus(String msg)
Creates warningIStatus
by the messagestatic BslUITemplatesPlugin
getDefault()
Gets default implementationTemplateStorageManagerProvider
geTemplateStorageManagerProvider()
Gets active instance ofTemplateStorageManagerProvider
for gettingTemplateStorageManager
static BslUITemplatesPlugin
getInstance()
This method shall be called to get instance of plug-instatic void
log(org.eclipse.core.runtime.IStatus status)
LogsIStatus
void
start(org.osgi.framework.BundleContext bundleContext)
void
stop(org.osgi.framework.BundleContext bundleContext)
-
Methods inherited from class org.eclipse.ui.plugin.AbstractUIPlugin
createImageRegistry, getDialogSettings, getImageRegistry, getPreferenceStore, getWorkbench, imageDescriptorFromPlugin, initializeDefaultPluginPreferences, initializeDefaultPreferences, initializeImageRegistry, loadDialogSettings, loadPreferenceStore, refreshPluginActions, saveDialogSettings, savePreferenceStore, shutdown, startup
-
-
-
-
Field Detail
-
PLUGIN_ID
public static final String PLUGIN_ID
Plugin unique id- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static BslUITemplatesPlugin getInstance()
This method shall be called to get instance of plug-in- Returns:
- plug-in instance, cannot be
null
-
getDefault
public static BslUITemplatesPlugin getDefault()
Gets default implementation- Returns:
- default implementation, cannot
null
-
log
public static void log(org.eclipse.core.runtime.IStatus status)
LogsIStatus
- Parameters:
status
- loggingIStatus
, cannot benull
-
createErrorStatus
public static org.eclipse.core.runtime.IStatus createErrorStatus(String msg, Throwable e)
Creates errorIStatus
by the message andThrowable
- Parameters:
msg
- error message, cannot benull
e
- exception for creatingIStatus
, can benull
- Returns:
- created
IStatus
, cannotnull
-
createWarningStatus
public static org.eclipse.core.runtime.IStatus createWarningStatus(String msg)
Creates warningIStatus
by the message- Parameters:
msg
- warning message, cannot benull
- Returns:
- created
IStatus
, cannotnull
-
start
public void start(org.osgi.framework.BundleContext bundleContext) 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 bundleContext) throws Exception
- Specified by:
stop
in interfaceorg.osgi.framework.BundleActivator
- Overrides:
stop
in classorg.eclipse.ui.plugin.AbstractUIPlugin
- Throws:
Exception
-
geTemplateStorageManagerProvider
public TemplateStorageManagerProvider geTemplateStorageManagerProvider()
Gets active instance ofTemplateStorageManagerProvider
for gettingTemplateStorageManager
- Returns:
- active instance of
TemplateStorageManagerProvider
, nevernull
-
-