|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.core.runtime.Plugin | +--org.eclipse.debug.core.DebugPlugin
There is one instance of the debug plug-in available from
DebugPlugin.getDefault()
. The debug plug-in provides:
Clients may not instantiate or subclass this class.
Field Summary | |
static String |
EXTENSION_POINT_BREAKPOINTS
Simple identifier constant (value "breakpoints" ) for the
breakpoints extension point. |
static String |
EXTENSION_POINT_LAUNCH_CONFIGURATION_COMPARATORS
Simple identifier constant (value "launchConfigurationComparators" )
for the launch configuration comparators extension point. |
static String |
EXTENSION_POINT_LAUNCH_CONFIGURATION_TYPES
Simple identifier constant (value "launchConfigurationTypes" )
for the launch configuration types extension point. |
static String |
EXTENSION_POINT_SOURCE_LOCATORS
Simple identifier constant (value "sourceLocators" ) for the
source locators extension point. |
static String |
EXTENSION_POINT_STATUS_HANDLERS
Simple identifier constant (value "statusHandlers" ) for the
status handlers extension point. |
static int |
INTERNAL_ERROR
Status code indicating an unexpected internal error. |
Fields inherited from class org.eclipse.core.runtime.Plugin |
PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME |
Constructor Summary | |
DebugPlugin(IPluginDescriptor descriptor)
Constructs the debug plug-in. |
Method Summary | |
void |
addDebugEventFilter(IDebugEventFilter filter)
Adds the given debug event filter to the registered event filters. |
void |
addDebugEventListener(IDebugEventSetListener listener)
Adds the given listener to the collection of registered debug event listeners. |
void |
fireDebugEventSet(DebugEvent[] events)
Notifies all registered debug event set listeners of the given debug events. |
IBreakpointManager |
getBreakpointManager()
Returns the breakpoint manager. |
static DebugPlugin |
getDefault()
Returns the singleton instance of the debug plug-in. |
IExpressionManager |
getExpressionManager()
Returns the expression manager. |
ILaunchManager |
getLaunchManager()
Returns the launch manager. |
IStatusHandler |
getStatusHandler(IStatus status)
Returns the status handler registered for the given status, or null if none. |
static String |
getUniqueIdentifier()
Convenience method which returns the unique identifier of this plugin. |
static void |
log(IStatus status)
Logs the specified status with this plug-in's log. |
static void |
log(Throwable t)
Logs the specified throwable with this plug-in's log. |
static void |
logDebugMessage(String message)
Logs the given message if in debug mode. |
static IProcess |
newProcess(ILaunch launch,
Process process,
String label)
Creates and returns a new process representing the given java.lang.Process . |
void |
removeDebugEventFilter(IDebugEventFilter filter)
Removes the given debug event filter from the registered event filters. |
void |
removeDebugEventListener(IDebugEventSetListener listener)
Removes the given listener from the collection of registered debug event listeners. |
void |
shutdown()
Shuts down this debug plug-in and discards all plug-in state. |
void |
startup()
Starts up the debug plug-in. |
Methods inherited from class org.eclipse.core.runtime.Plugin |
find, find, getDescriptor, getLog, getPluginPreferences, getStateLocation, initializeDefaultPluginPreferences, isDebugging, openStream, openStream, savePluginPreferences, setDebugging, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String EXTENSION_POINT_LAUNCH_CONFIGURATION_TYPES
"launchConfigurationTypes"
)
for the launch configuration types extension point.
public static final String EXTENSION_POINT_LAUNCH_CONFIGURATION_COMPARATORS
"launchConfigurationComparators"
)
for the launch configuration comparators extension point.
public static final String EXTENSION_POINT_BREAKPOINTS
"breakpoints"
) for the
breakpoints extension point.
public static final String EXTENSION_POINT_STATUS_HANDLERS
"statusHandlers"
) for the
status handlers extension point.
public static final String EXTENSION_POINT_SOURCE_LOCATORS
"sourceLocators"
) for the
source locators extension point.
public static final int INTERNAL_ERROR
Constructor Detail |
public DebugPlugin(IPluginDescriptor descriptor)
An instance of this plug-in runtime class is automatically created when the facilities provided by this plug-in are required. Clients must never explicitly instantiate a plug-in runtime class.
Method Detail |
public static DebugPlugin getDefault()
public static String getUniqueIdentifier()
public void addDebugEventListener(IDebugEventSetListener listener)
listener
- the listener to addpublic void fireDebugEventSet(DebugEvent[] events)
events
- array of debug events to fireIDebugEventFilter
,
IDebugEventSetListener
public IBreakpointManager getBreakpointManager()
IBreakpointManager
public ILaunchManager getLaunchManager()
ILaunchManager
public IStatusHandler getStatusHandler(IStatus status)
null
if none.
null
if nonepublic IExpressionManager getExpressionManager()
IExpressionManager
public void removeDebugEventListener(IDebugEventSetListener listener)
listener
- the listener to removepublic void shutdown() throws CoreException
This method will be automatically invoked by the platform when the platform is shut down.
Clients must never explicitly call this method.
shutdown
in class Plugin
CoreException
- if this plug-in fails to shut downpublic void startup() throws CoreException
This method is automatically invoked by the platform the first time any code in this plug-in is executed.
Clients must never explicitly call this method.
startup
in class Plugin
CoreException
- if this plug-in fails to start upPlugin.startup()
public static IProcess newProcess(ILaunch launch, Process process, String label)
java.lang.Process
. A streams proxy is created
for the I/O streams in the system process. The process
is added to the given launch.
launch
- the launch the process is conatined inprocess
- the system process to wraplabel
- the label assigned to the process
IProcess
public void addDebugEventFilter(IDebugEventFilter filter)
filter
- debug event filterpublic void removeDebugEventFilter(IDebugEventFilter filter)
filter
- debug event filterpublic static void logDebugMessage(String message)
message
- the message to logpublic static void log(IStatus status)
status
- status to logpublic static void log(Throwable t)
t
- throwable to log
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |