package bluej.debugmgr.objectbench;
import bluej.BlueJEvent;
import bluej.debugger.DebuggerObject;
import bluej.pkgmgr.Package;
import bluej.pkgmgr.PkgMgrFrame;
import bluej.testmgr.record.InvokerRecord;
import bluej.views.CallableView;
import bluej.views.MethodView;
| A standard watcher for invocation results in BlueJ.
|
| Over ObjectResultWatcher, this mainly just adds setting of the wait cursor on the PkgMgrFrame
| associated with the invocation.
|
| @author Davin McCall
|
public abstract class BluejResultWatcher
extends ResultWatcherBase{
private PkgMgrFrame pmf;
| Constructor for BluejResultWatcher, for a constructor or static method call.
|
| @param className the name of the class whose member is called
| @param pkg the package in which the invocation occurs
| @param pmf the PkgMgrFrame for the package
| @param method the method/constructor being invoked
|
public BluejResultWatcher(Package pkg, PkgMgrFrame pmf, CallableView method)
{
super(pkg, pmf.getFXWindow(), method);
this.pmf = pmf;
}
| Constructor for BluejResultWatcher, for an instance method call.
|
| @param obj the target object of the invocation
| @param objInstanceName the name of the target instance
| @param pkg the package in which the invocation occurs
| @param pmf the PkgMgrFrame for the package
| @param method the method being invoked
|
public BluejResultWatcher(DebuggerObject obj, String objInstanceName, Package pkg, PkgMgrFrame pmf, MethodView method)
{
super(obj, objInstanceName, pkg, pmf.getFXWindow(), method);
this.pmf = pmf;
}
@Override
public void beginCompile()
{
pmf.setWaitCursor(true);
}
@Override
public void beginExecution(InvokerRecord ir)
{
BlueJEvent.raiseEvent(BlueJEvent.METHOD_CALL, ir, pmf.getProject());
pmf.setWaitCursor(false);
}
@Override
public void putError(String msg, InvokerRecord ir)
{
pmf.setWaitCursor(false);
}
}
top,
use,
map,
abstract class BluejResultWatcher
. BluejResultWatcher
. BluejResultWatcher
. beginCompile
. beginExecution
. putError
59 neLoCode
+ 16 LoComm