|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.runtime.Plugin
org.eclipse.ui.plugin.AbstractUIPlugin
org.eclipse.ocl.examples.xtext.base.ui.Activator
public class Activator
Field Summary | |
---|---|
static java.lang.String |
PLUGIN_ID
|
Fields inherited from class org.eclipse.core.runtime.Plugin |
---|
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME |
Constructor Summary | |
---|---|
Activator()
|
Method Summary | |
---|---|
static Activator |
getDefault()
Returns the shared instance |
static org.eclipse.jface.resource.ImageDescriptor |
getImageDescriptor(java.lang.String path)
Returns an image descriptor for the image file at the given plug-in relative path |
static org.eclipse.core.resources.IWorkspace |
getPluginWorkspace()
Return the workspace used by the workbench This method is internal to the workbench and must not be called by any plugins. |
static void |
log(java.lang.Class clazz,
java.lang.String methodName,
java.lang.Throwable t)
Logs the given throwable to the platform log, indicating the class and method from where it is being logged (this is not necessarily where it occurred). |
static void |
log(java.lang.Exception e)
Logs a message with given level into the Eclipse log file |
static void |
log(java.lang.String message,
int severity,
java.lang.Exception e)
Logs a message with given level into the Eclipse log file |
static void |
log(java.lang.String message,
org.eclipse.core.runtime.IStatus status)
Logs the given message and status to the platform log. |
static void |
log(java.lang.String message,
java.lang.Throwable t)
Logs the given message and throwable to the platform log. |
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 |
Methods inherited from class org.eclipse.core.runtime.Plugin |
---|
find, find, getBundle, getDescriptor, getLog, getPluginPreferences, getStateLocation, internalInitializeDefaultPluginPreferences, isDebugging, openStream, openStream, savePluginPreferences, setDebugging, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PLUGIN_ID
Constructor Detail |
---|
public Activator()
Method Detail |
---|
public void start(org.osgi.framework.BundleContext bundleContext) throws java.lang.Exception
start
in interface org.osgi.framework.BundleActivator
start
in class org.eclipse.ui.plugin.AbstractUIPlugin
java.lang.Exception
public void stop(org.osgi.framework.BundleContext bundleContext) throws java.lang.Exception
stop
in interface org.osgi.framework.BundleActivator
stop
in class org.eclipse.ui.plugin.AbstractUIPlugin
java.lang.Exception
public static Activator getDefault()
public static org.eclipse.core.resources.IWorkspace getPluginWorkspace()
public static org.eclipse.jface.resource.ImageDescriptor getImageDescriptor(java.lang.String path)
path
- the path
public static void log(java.lang.String message, java.lang.Throwable t)
message
- A high level UI message describing when the problem happened.t
- The throwable from where the problem actually occurred.public static void log(java.lang.Class clazz, java.lang.String methodName, java.lang.Throwable t)
clazz
- The calling class.methodName
- The calling method name.t
- The throwable from where the problem actually occurred.public static void log(java.lang.String message, org.eclipse.core.runtime.IStatus status)
message
- A high level UI message describing when the problem happened.
May be null
.status
- The status describing the problem. Must not be null.public static void log(java.lang.Exception e)
message
- the message to logseverity
- the message prioritypublic static void log(java.lang.String message, int severity, java.lang.Exception e)
message
- the message to logseverity
- the message prioritye
- exception to log
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |