org.eclipse.cdt.debug.core
Class CDebugCorePlugin

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

public class CDebugCorePlugin
extends org.eclipse.core.runtime.Plugin

The plugin class for C/C++ debug core.


Field Summary
static java.lang.String ACTION_TYPE_ELEMENT
           
static java.lang.String BREAKPOINT_ACTION_EXTENSION_POINT_ID
           
static java.lang.String CDEBUGGER_EXTENSION_POINT_ID
           
static java.lang.String DEBUGGER_ELEMENT
           
static int INTERNAL_ERROR
          Status code indicating an unexpected internal error.
static java.lang.String PLUGIN_ID
          The plug-in identifier (value "org.eclipse.cdt.debug.core").
 
Fields inherited from class org.eclipse.core.runtime.Plugin
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME
 
Constructor Summary
CDebugCorePlugin()
          The constructor.
 
Method Summary
 void addCBreakpointListener(ICBreakpointListener listener)
          Adds the given breakpoint listener to the debug model.
 ICDebugConfiguration[] getActiveDebugConfigurations()
           
 BreakpointActionManager getBreakpointActionManager()
           
 java.lang.Object[] getCBreakpointListeners()
          Returns the list of breakpoint listeners registered with this plugin.
 ICSourceLocation[] getCommonSourceLocations()
           
 CSourceLookupDirector getCommonSourceLookupDirector()
           
 ICDebugConfiguration getDebugConfiguration(java.lang.String id)
           
 ICDebugConfiguration[] getDebugConfigurations()
           
static CDebugCorePlugin getDefault()
          Returns the shared instance.
 ICDebugConfiguration[] getDefaultActiveDebugConfigurations()
           
 ICDebugConfiguration getDefaultDebugConfiguration()
           
 ICDebugConfiguration getDefaultDefaultDebugConfiguration()
           
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.
 boolean isDefaultDebugConfiguration(java.lang.String id)
           
static void log(org.eclipse.core.runtime.IStatus status)
          Logs the specified status with this plug-in's log.
static void log(java.lang.String message)
          Logs the specified message with this plug-in's log.
static void log(java.lang.Throwable t)
          Logs the specified throwable with this plug-in's log.
 void removeCBreakpointListener(ICBreakpointListener listener)
          Removes the given breakpoint listener from the debug model.
 void saveCommonSourceLocations(ICSourceLocation[] locations)
           
 void saveDefaultDebugConfiguration(java.lang.String id)
           
 void saveFilteredDebugConfigurations(ICDebugConfiguration[] configurations)
           
 void start(org.osgi.framework.BundleContext context)
           
 void stop(org.osgi.framework.BundleContext context)
           
 
Methods inherited from class org.eclipse.core.runtime.Plugin
find, find, getBundle, getDescriptor, getLog, getPluginPreferences, getStateLocation, internalInitializeDefaultPluginPreferences, isDebugging, openStream, openStream, savePluginPreferences, setDebugging, shutdown, startup, 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.core").

See Also:
Constant Field Values

INTERNAL_ERROR

public static final int INTERNAL_ERROR
Status code indicating an unexpected internal error.

See Also:
Constant Field Values

CDEBUGGER_EXTENSION_POINT_ID

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

DEBUGGER_ELEMENT

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

BREAKPOINT_ACTION_EXTENSION_POINT_ID

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

ACTION_TYPE_ELEMENT

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

CDebugCorePlugin

public CDebugCorePlugin()
The constructor.

Method Detail

getDefault

public static CDebugCorePlugin getDefault()
Returns the shared instance.

Returns:
the shared instance

getWorkspace

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

Returns:
the workspace instance

getUniqueIdentifier

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

Returns:
the unique identifier of this plugin

log

public static void log(java.lang.Throwable t)
Logs the specified throwable with this plug-in's log.

Parameters:
t - throwable to log

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.String message)
Logs the specified message with this plug-in's log.

Parameters:
status - status to log

getDebugConfigurations

public ICDebugConfiguration[] getDebugConfigurations()

getActiveDebugConfigurations

public ICDebugConfiguration[] getActiveDebugConfigurations()

getDefaultActiveDebugConfigurations

public ICDebugConfiguration[] getDefaultActiveDebugConfigurations()

saveFilteredDebugConfigurations

public void saveFilteredDebugConfigurations(ICDebugConfiguration[] configurations)

saveDefaultDebugConfiguration

public void saveDefaultDebugConfiguration(java.lang.String id)

getDefaultDebugConfiguration

public ICDebugConfiguration getDefaultDebugConfiguration()

getDefaultDefaultDebugConfiguration

public ICDebugConfiguration getDefaultDefaultDebugConfiguration()

isDefaultDebugConfiguration

public boolean isDefaultDebugConfiguration(java.lang.String id)

getDebugConfiguration

public ICDebugConfiguration getDebugConfiguration(java.lang.String id)
                                           throws org.eclipse.core.runtime.CoreException
Throws:
org.eclipse.core.runtime.CoreException

saveCommonSourceLocations

public void saveCommonSourceLocations(ICSourceLocation[] locations)

getCommonSourceLocations

public ICSourceLocation[] getCommonSourceLocations()

addCBreakpointListener

public void addCBreakpointListener(ICBreakpointListener listener)
Adds the given breakpoint listener to the debug model.

Parameters:
listener - breakpoint listener

removeCBreakpointListener

public void removeCBreakpointListener(ICBreakpointListener listener)
Removes the given breakpoint listener from the debug model.

Parameters:
listener - breakpoint listener

getCBreakpointListeners

public java.lang.Object[] getCBreakpointListeners()
Returns the list of breakpoint listeners registered with this plugin.

Returns:
the list of breakpoint listeners registered with this plugin

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.core.runtime.Plugin
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.core.runtime.Plugin
Throws:
java.lang.Exception

getCommonSourceLookupDirector

public CSourceLookupDirector getCommonSourceLookupDirector()

getBreakpointActionManager

public BreakpointActionManager getBreakpointActionManager()