|
EGF Engine Release 0.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectAbstractUIPlugin
org.eclipse.egf.common.ui.activator.AbstractUIActivator
public abstract class AbstractUIActivator
Base class for plug-ins that integrate with the Eclipse platform UI.
Constructor Summary | |
---|---|
AbstractUIActivator()
|
Method Summary | |
---|---|
protected ImageDescriptor |
createImageDescriptor(String key_p)
Create an image descriptor for given key. |
Image |
getImage(String key_p)
Get an image for given key. |
ImageDescriptor |
getImageDescriptor(String key_p)
Get an image descriptor for given key. |
String |
getPluginID()
Get the plug-in ID according to MANIFEST.MF definition. |
static Display |
getWorkbenchDisplay()
Returns the workbench display to be used. |
void |
log(Class<?> clazz,
String methodName,
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). |
void |
log(int severity,
String message,
Throwable e)
Log the given exception along with the provided message and severity indicator |
void |
log(IStatus status)
Logs the given message and status to the platform log. |
void |
log(String message)
Logs the given message to the platform log. |
void |
log(String message,
IStatus status)
Logs the given message and status to the platform log. |
void |
log(String message,
Throwable t)
Logs the given message and throwable to the platform log. |
void |
log(Throwable t)
|
IStatus |
newErrorStatus(String message,
Throwable exception)
Returns a new error status for this plug-in with the given message |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractUIActivator()
Method Detail |
---|
public static Display getWorkbenchDisplay()
public void log(Throwable t)
public IStatus newErrorStatus(String message, Throwable exception)
message
- the message to be included in the statusexception
- the exception to be included in the status or null
if none
public void log(String message)
message
- A high level UI message describing when the problem happened.public void log(String message, Throwable t)
message
- A high level UI message describing when the problem happened.t
- The throwable from where the problem actually occurred.public void log(Class<?> clazz, String methodName, Throwable t)
clazz
- The calling class.methodName
- The calling method name.t
- The throwable from where the problem actually occurred.public void log(IStatus status)
status
- The status describing the problem. Must not be null.public void log(int severity, String message, Throwable e)
public void log(String message, 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 ImageDescriptor getImageDescriptor(String key_p)
key_p
- the key must be the file name of the related image.
ImageDescriptor
or null if not foundpublic Image getImage(String key_p)
key_p
- the key must be the file name of the related image.
Image
or null if not foundprotected ImageDescriptor createImageDescriptor(String key_p)
key_p
- the key must be the file name of the related image.
ImageDescriptor
or null if error occurredpublic String getPluginID()
|
EGF Engine Release 0.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) Thales Corporate Services S.A.S, 2009.
This page is made available under license. For full details see the LEGAL in the documentation book that contains this page.