public class ImportDebugger extends SecondaryDebuggerSupport (Code)
Example of Debugger Implementation. It "debugs" import statements
in Java files (so it does not need compiled .class files). Step
Into on "import java.awt.Button" opens .java file for Button and
puts current line to the first line of it.
author: Jan Jancura
Creates new uninitialized watch. The watch is visible (not hidden).
new uninitialized watch
createWatch
public Watch createWatch(String expr, boolean hidden)(Code)
Creates a watch its expression is set to initial value. Also
allows to create a watch not presented to the user, for example
for internal usage in the editor to obtain values of variables
under the mouse pointer.
Parameters: expr - expresion to watch for Parameters: hidden - allows to specify whether the watch should be presentedto the user or not (be only of internal usage of the IDE). new watch
finishDebugger
public void finishDebugger() throws DebuggerException(Code)
public void startDebugger(DebuggerInfo info) throws DebuggerException(Code)
Starts the debugger. The method stops the current debugging (if any)
and takes information from the provided info (containing the class to start and
arguments to pass it and name of class to stop debugging in) and starts
new debugging session.
Parameters: info - debugger info about class to start exception: DebuggerException - if an error occures during the start of the debugger