org.eclipse.cdt.launch.internal.ui
Class LaunchUIPlugin

java.lang.Object
  extended by org.eclipse.core.runtime.Plugin
      extended by org.eclipse.ui.plugin.AbstractUIPlugin
          extended by org.eclipse.cdt.launch.internal.ui.LaunchUIPlugin
All Implemented Interfaces:
org.eclipse.debug.core.IDebugEventSetListener, org.osgi.framework.BundleActivator

public class LaunchUIPlugin
extends org.eclipse.ui.plugin.AbstractUIPlugin
implements org.eclipse.debug.core.IDebugEventSetListener


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
LaunchUIPlugin()
          Constructor for LaunchUIPlugin.
 
Method Summary
static void errorDialog(java.lang.String message, org.eclipse.core.runtime.IStatus status)
           
static void errorDialog(java.lang.String message, java.lang.Throwable t)
           
static org.eclipse.ui.IWorkbenchPage getActivePage()
           
static org.eclipse.swt.widgets.Shell getActiveWorkbenchShell()
          Returns the active workbench shell or null if none
static org.eclipse.ui.IWorkbenchWindow getActiveWorkbenchWindow()
          Returns the active workbench window
static LaunchUIPlugin getDefault()
          Returns the Java Debug UI plug-in instance
static org.eclipse.swt.widgets.Shell getShell()
           
static java.lang.String getUniqueIdentifier()
          Convenience method which returns the unique identifier of this plugin.
 void handleDebugEvents(org.eclipse.debug.core.DebugEvent[] events)
          Notifies this listener of the given debug events.
static void log(org.eclipse.core.runtime.IStatus status)
          Logs the specified status with this plug-in's log.
static void log(java.lang.Throwable e)
          Logs an internal error with the specified throwable
static void logErrorMessage(java.lang.String message)
          Logs an internal error with the specified message.
static void setDialogShell(org.eclipse.swt.widgets.Shell shell)
           
 void start(org.osgi.framework.BundleContext context)
           
 void stop(org.osgi.framework.BundleContext context)
           
 
Methods inherited from class org.eclipse.ui.plugin.AbstractUIPlugin
getDialogSettings, getImageRegistry, getPreferenceStore, getWorkbench, imageDescriptorFromPlugin, 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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PLUGIN_ID

public static final java.lang.String PLUGIN_ID
See Also:
Constant Field Values
Constructor Detail

LaunchUIPlugin

public LaunchUIPlugin()
Constructor for LaunchUIPlugin.

Parameters:
descriptor -
Method Detail

getDefault

public static LaunchUIPlugin getDefault()
Returns the Java Debug UI plug-in instance

Returns:
the Java Debug UI plug-in instance

getShell

public static org.eclipse.swt.widgets.Shell getShell()

setDialogShell

public static void setDialogShell(org.eclipse.swt.widgets.Shell shell)

getUniqueIdentifier

public static java.lang.String getUniqueIdentifier()
Convenience method which returns the unique identifier of this plugin.


log

public static void log(org.eclipse.core.runtime.IStatus status)
Logs the specified status with this plug-in's log.

Parameters:
status - status to log

logErrorMessage

public static void logErrorMessage(java.lang.String message)
Logs an internal error with the specified message.

Parameters:
message - the error message to log

log

public static void log(java.lang.Throwable e)
Logs an internal error with the specified throwable

Parameters:
e - the exception to be logged

getActiveWorkbenchWindow

public static org.eclipse.ui.IWorkbenchWindow getActiveWorkbenchWindow()
Returns the active workbench window

Returns:
the active workbench window

getActivePage

public static org.eclipse.ui.IWorkbenchPage getActivePage()

getActiveWorkbenchShell

public static org.eclipse.swt.widgets.Shell getActiveWorkbenchShell()
Returns the active workbench shell or null if none

Returns:
the active workbench shell or null if none

errorDialog

public static void errorDialog(java.lang.String message,
                               org.eclipse.core.runtime.IStatus status)

errorDialog

public static void errorDialog(java.lang.String message,
                               java.lang.Throwable t)

start

public void start(org.osgi.framework.BundleContext context)
           throws java.lang.Exception
Specified by:
start in interface org.osgi.framework.BundleActivator
Overrides:
start in class org.eclipse.ui.plugin.AbstractUIPlugin
Throws:
java.lang.Exception

stop

public void stop(org.osgi.framework.BundleContext context)
          throws java.lang.Exception
Specified by:
stop in interface org.osgi.framework.BundleActivator
Overrides:
stop in class org.eclipse.ui.plugin.AbstractUIPlugin
Throws:
java.lang.Exception

handleDebugEvents

public void handleDebugEvents(org.eclipse.debug.core.DebugEvent[] events)
Notifies this listener of the given debug events. All of the events in the given event collection occurred at the same location the program be run or debugged.

Specified by:
handleDebugEvents in interface org.eclipse.debug.core.IDebugEventSetListener
Parameters:
events - the debug events