org.ocleditor.serviceability
Class PluginError

java.lang.Object
  extended byorg.ocleditor.serviceability.PluginError

public final class PluginError
extends java.lang.Object

Used to show/log errors.

If methods of this class are used in other plugins, then also org.ocleditor will be shown as the source of the error.


Method Summary
static void log(java.lang.String message)
          Logs the message to the plugin's log file.
static void log(java.lang.String message, java.lang.Exception e)
          Logs the message and the exception to the plugin's log file.
static void show(java.lang.String message)
          Shows the message in an error dialog.
static void show(java.lang.String message, org.eclipse.core.runtime.CoreException e)
          Shows the message and the exception in an error dialog.
static void show(java.lang.String message, org.eclipse.core.runtime.CoreException e, org.eclipse.swt.widgets.Shell parent)
          Shows the message and the exception in an error dialog.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

show

public static void show(java.lang.String message)
Shows the message in an error dialog.

Parameters:
message -

show

public static void show(java.lang.String message,
                        org.eclipse.core.runtime.CoreException e)
Shows the message and the exception in an error dialog.

Parameters:
message -
e - can be null.

show

public static void show(java.lang.String message,
                        org.eclipse.core.runtime.CoreException e,
                        org.eclipse.swt.widgets.Shell parent)
Shows the message and the exception in an error dialog.

Parameters:
message -
e - can be null.
parent - can be null.

log

public static void log(java.lang.String message)
Logs the message to the plugin's log file.

Parameters:
message -

log

public static void log(java.lang.String message,
                       java.lang.Exception e)
Logs the message and the exception to the plugin's log file.

Parameters:
message -
e -