org.eclipse.cdt.debug.ui
Class CDebugUIPlugin

java.lang.Object
  extended by org.eclipse.core.runtime.Plugin
      extended by org.eclipse.ui.plugin.AbstractUIPlugin
          extended by org.eclipse.cdt.debug.ui.CDebugUIPlugin
All Implemented Interfaces:
org.osgi.framework.BundleActivator

public class CDebugUIPlugin
extends org.eclipse.ui.plugin.AbstractUIPlugin

The main plugin class to be used in the desktop.


Field Summary
static java.lang.String CDEBUGGER_PAGE_EXTENSION_POINT_ID
           
static java.lang.String DEBUGGER_PAGE_ELEMENT
           
static java.lang.String PLUGIN_ID
          The plug-in identifier (value "org.eclipse.cdt.debug.ui").
 
Fields inherited from class org.eclipse.core.runtime.Plugin
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME
 
Constructor Summary
CDebugUIPlugin()
          The constructor.
 
Method Summary
static org.eclipse.debug.core.model.IPersistableSourceLocator createDefaultSourceLocator()
           
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
 ICDebuggerPage getDebuggerPage(java.lang.String debuggerID)
           
static CDebugModelPresentation getDebugModelPresentation()
           
static CDebugUIPlugin getDefault()
          Returns the shared instance.
static java.lang.String getDefaultSourceLocatorID()
           
static java.lang.String getDefaultSourceLocatorOldID()
           
static CDebugImageDescriptorRegistry getImageDescriptorRegistry()
          Returns the image descriptor registry used for this plugin.
static org.eclipse.swt.graphics.Color getPreferenceColor(java.lang.String type)
          Returns the a color based on the type of output.
 org.eclipse.jface.text.source.ISharedTextColors getSharedTextColors()
          Returns the shared text colors of this plug-in.
static org.eclipse.swt.widgets.Display getStandardDisplay()
          Returns the standard display to be used.
static java.lang.String getUniqueIdentifier()
          Convenience method which returns the unique identifier of this plugin.
static org.eclipse.core.resources.IWorkspace getWorkspace()
          Returns the workspace instance.
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.
 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
The plug-in identifier (value "org.eclipse.cdt.debug.ui").

See Also:
Constant Field Values

CDEBUGGER_PAGE_EXTENSION_POINT_ID

public static final java.lang.String CDEBUGGER_PAGE_EXTENSION_POINT_ID
See Also:
Constant Field Values

DEBUGGER_PAGE_ELEMENT

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

CDebugUIPlugin

public CDebugUIPlugin()
The constructor.

Method Detail

getDefault

public static CDebugUIPlugin getDefault()
Returns the shared instance.


getWorkspace

public static org.eclipse.core.resources.IWorkspace getWorkspace()
Returns the workspace instance.


getUniqueIdentifier

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


getPreferenceColor

public static org.eclipse.swt.graphics.Color getPreferenceColor(java.lang.String type)
Returns the a color based on the type of output. Valid types:
  • CHANGED_REGISTER_RGB

  • getDebugModelPresentation

    public static CDebugModelPresentation getDebugModelPresentation()

    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

    log

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

    Parameters:
    e - the exception to be logged

    logErrorMessage

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

    Parameters:
    message - the error message to log

    getDebuggerPage

    public ICDebuggerPage getDebuggerPage(java.lang.String debuggerID)
                                   throws org.eclipse.core.runtime.CoreException
    Throws:
    org.eclipse.core.runtime.CoreException

    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)

    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

    getStandardDisplay

    public static org.eclipse.swt.widgets.Display getStandardDisplay()
    Returns the standard display to be used. The method first checks, if the thread calling this method has an associated display. If so, this display is returned. Otherwise the method returns the default display.


    getImageDescriptorRegistry

    public static CDebugImageDescriptorRegistry getImageDescriptorRegistry()
    Returns the image descriptor registry used for this plugin.


    createDefaultSourceLocator

    public static org.eclipse.debug.core.model.IPersistableSourceLocator createDefaultSourceLocator()

    getDefaultSourceLocatorID

    public static java.lang.String getDefaultSourceLocatorID()

    getDefaultSourceLocatorOldID

    public static java.lang.String getDefaultSourceLocatorOldID()

    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

    getSharedTextColors

    public org.eclipse.jface.text.source.ISharedTextColors getSharedTextColors()
    Returns the shared text colors of this plug-in.

    Returns:
    the shared text colors
    Since:
    3.1