Class V8UiPlugin
java.lang.Object
org.eclipse.core.runtime.Plugin
org.eclipse.ui.plugin.AbstractUIPlugin
com.e1c.langtool.v8.dt.internal.ui.V8UiPlugin
- All Implemented Interfaces:
org.osgi.framework.BundleActivator
public class V8UiPlugin
extends org.eclipse.ui.plugin.AbstractUIPlugin
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 StringFields 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, Throwable throwable) Creates error status by a given message and cause throwable.static org.eclipse.core.runtime.IStatuscreateInfoStatus(String message) Creates info status by a given message.static org.eclipse.core.runtime.IStatuscreateWarningStatus(String message) Creates warning status by a given message.static org.eclipse.core.runtime.IStatuscreateWarningStatus(String message, Exception throwable) Creates warning status by a given message and cause throwable.protected org.osgi.framework.BundleContextReturns bundle context of the plugin.static V8UiPluginReturns the shared instancestatic org.eclipse.swt.graphics.Imagestatic org.eclipse.jface.resource.ImageDescriptorcom.google.inject.InjectorReturns Guice injector of the pluginorg.eclipse.jface.preference.IPreferenceStoregetPreferenceStore(org.eclipse.core.resources.IProject project) protected voidinitializeImageRegistry(org.eclipse.jface.resource.ImageRegistry imageRegistry) static voidlog(org.eclipse.core.runtime.IStatus status) Writes a status to the plugin log.static voidWrites a throwable with the given message to the plugin log as error status.static voidWrites a throwable to the plugin log as error status.static voidWrites an info status to the plugin log.voidstart(org.osgi.framework.BundleContext context) voidstop(org.osgi.framework.BundleContext context) 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, isDebugging, openStream, openStream, savePluginPreferences, setDebugging, toString
-
Field Details
-
PLUGIN_ID
- See Also:
-
T_OBJ16
- See Also:
-
T_ETOOL16
- See Also:
-
WIZARD_BANNER_FOLDER
- See Also:
-
IMG_OBJS_TRANSLATIONS
- See Also:
-
IMG_OBJS_TRANSLATIONS_RUN
- See Also:
-
IMG_OBJS_MANUAL_SYNC
- See Also:
-
IMG_OBJS_AUTO_SYNC
- See Also:
-
IMG_OBJS_SYNC_MODE
- See Also:
-
IMG_OBJS_EQUALITY_NEED_UPDATE
- See Also:
-
IMG_OBJS_EQUALITY_NOT_CREATED
- See Also:
-
IMG_OBJS_EQUALITY_SYNCHRONIZED
- See Also:
-
IMG_OBJS_EQUALITY_SYNCHRONIZING
- See Also:
-
IMG_ETOOL16_OPEN_TRANSLATION
- See Also:
-
IMAGE_WIZARD_BANNER_LANGUAGE_CONVERTER_SETTINGS
- See Also:
-
IMAGE_WIZARD_BANNER_LANGUAGE_CLEANER_SETTINGS
- See Also:
-
-
Constructor Details
-
V8UiPlugin
public V8UiPlugin()
-
-
Method Details
-
getDefault
Returns the shared instance- Returns:
- the shared instance
-
log
public static void log(org.eclipse.core.runtime.IStatus status) Writes a status to the plugin log.- Parameters:
status- status to log, cannot benull
-
logError
Writes a throwable to the plugin log as error status.- Parameters:
throwable- throwable, cannot benull
-
logError
Writes a throwable with the given message to the plugin log as error status.- Parameters:
message- message to logthrowable- throwable, cannot benull
-
logInfo
Writes an info status to the plugin log.- Parameters:
status- status to log, cannot benull
-
createErrorStatus
public static org.eclipse.core.runtime.IStatus createErrorStatus(String message, Throwable throwable) Creates error status by a given message and cause throwable.- Parameters:
message- status message, cannot benullthrowable- throwable, can benullif not applicable- Returns:
- status created error status, never
null
-
createWarningStatus
Creates warning status by a 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, Exception throwable) Creates warning status by a given message and cause throwable.- Parameters:
message- status message, cannot benullthrowable- throwable, can benullif not applicable- Returns:
- status created warning status, never
null
-
createInfoStatus
Creates info status by a given message.- Parameters:
message- status message, cannot benull- Returns:
- status created info status, never
null
-
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
-
getInjector
public com.google.inject.Injector getInjector()Returns Guice injector of the plugin- Returns:
- Guice injector of the plugin, never
nullif plugin is started
-
getPreferenceStore
public org.eclipse.jface.preference.IPreferenceStore getPreferenceStore(org.eclipse.core.resources.IProject project) -
getContext
protected org.osgi.framework.BundleContext getContext()Returns bundle context of the plugin.- Returns:
- bundle context of the plugin, never
nullif plugin is started
-
getImage
-
getImageDescriptor
-
initializeImageRegistry
protected void initializeImageRegistry(org.eclipse.jface.resource.ImageRegistry imageRegistry) - Overrides:
initializeImageRegistryin classorg.eclipse.ui.plugin.AbstractUIPlugin
-