|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.openide.ServiceType | +--org.openide.debugger.DebuggerType
Defines one debugger type. It has method start that accepts ExecInfo and should probably create new DebuggerInfo and call Debugger.startDebug (debuggerInfo). The type should be serializable, so it can be attached to file attributes of any object that wishes to be especially debugged.
This class currently has a property editor in the IDE's default editor search path.
Inner Class Summary | |
static class |
DebuggerType.Default
Default debugger type. |
Inner classes inherited from class org.openide.ServiceType |
ServiceType.Handle, ServiceType.Registry |
Fields inherited from class org.openide.ServiceType |
PROP_NAME |
Constructor Summary | |
DebuggerType()
|
Method Summary | |
static Enumeration |
debuggerTypes()
Get all registered executors in the system's execution engine. |
static DebuggerType |
find(Class clazz)
Find the debugger implemented as a given class, among the executors registered to the execution engine. |
static DebuggerType |
find(String name)
Find the debugger with requested name, among the executors registered to the execution engine. |
static DebuggerType |
getDefault()
Deprecated. There is probably not a single debugger type meaningfully applicable to all file types. If you explicitly want to invoke the plain Debugger interfaces, use DebuggerType.Default instead. |
HelpCtx |
getHelpCtx()
Get context help for this service type. |
void |
startDebugger(DataObject obj,
boolean stopOnMain)
Starts debugging for a dataobject. |
abstract void |
startDebugger(ExecInfo info,
boolean stopOnMain)
Should start the debugging of this type. |
Methods inherited from class org.openide.ServiceType |
addPropertyChangeListener, clone, createClone, displayName, firePropertyChange, getName, removePropertyChangeListener, setName |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DebuggerType()
Method Detail |
public abstract void startDebugger(ExecInfo info, boolean stopOnMain) throws DebuggerException
info
- class and parameters to runstopOnMain
- should the debugging stop on main method or go to first breakpointDebuggerException
- if debugger is not installed or cannot be startedpublic void startDebugger(DataObject obj, boolean stopOnMain) throws DebuggerException
obj
- object to runstopOnMain
- should the debugging stop on main method or go to first breakpointDebuggerException
- if debugger is not installed or cannot be startedpublic HelpCtx getHelpCtx()
ServiceType
getHelpCtx
in class ServiceType
org.openide.ServiceType
public static Enumeration debuggerTypes()
DebuggerType
spublic static DebuggerType find(Class clazz)
This should be used during (de-)serialization of the specific debugger for a data object: only store its class name and then try to find the debugger implemented by that class later.
clazz
- the class of the debugger looked fornull
if it does not existpublic static DebuggerType find(String name)
This should be used during (de-)serialization of the specific debugger for a data object: only store its name and then try to find the debugger later.
name
- (display) name of debugger to findnull
if it does not existpublic static DebuggerType getDefault()
DebuggerType.Default
instead.
You may actually want ExecSupport.getExecutor(org.openide.loaders.MultiDataObject.Entry)
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |