* @see org.eclipse.debug.core.model.ISuspendResume#isSuspended()
*/
public boolean isSuspended() {
- return fTarget.isSuspended();
+// return fTarget.isSuspended();
+ return getDebugTarget().isSuspended();
}
/* (non-Javadoc)
*/
public void resume() throws DebugException {
fBreakpoints=null;
- fTarget.resume();
+ getDebugTarget().resume();
}
/* (non-Javadoc)
* @see org.eclipse.debug.core.model.ISuspendResume#suspend()
*/
public void suspend() throws DebugException {
- fTarget.suspend();
+ getDebugTarget().suspend();
}
/* (non-Javadoc)
*/
public void stepInto() throws DebugException {
fBreakpoints=null;
- fTarget.step_into();
+ ((XDebugTarget) getDebugTarget()).step_into();
}
/* (non-Javadoc)
*/
public void stepOver() throws DebugException {
fBreakpoints=null;
- fTarget.step_over();
+ ((XDebugTarget) getDebugTarget()).step_over();
}
/* (non-Javadoc)
*/
public void stepReturn() throws DebugException {
fBreakpoints=null;
- fTarget.step_out();
+ ((XDebugTarget) getDebugTarget()).step_out();
}
/* (non-Javadoc)
* @see org.eclipse.debug.core.model.ITerminate#terminate()
*/
public void terminate() throws DebugException {
- fTarget.getDebugConnection().stop();
+ ((XDebugTarget) getDebugTarget()).getDebugConnection().stop();
fTerminated = true;
}
public void removeEventListeners() {
DebugPlugin.getDefault().removeDebugEventListener(this);
}
+
+ /**
+ * Fires a <code>CREATE</code> event for this element.
+ */
+ public void fireCreationEvent() {
+ fireEvent(new DebugEvent(this, DebugEvent.CREATE));
+ }
+
+ /**
+ * Fires a <code>RESUME</code> event for this element with
+ * the given detail.
+ *
+ * @param detail event detail code
+ */
+ public void fireResumeEvent(int detail) {
+ fireEvent(new DebugEvent(this, DebugEvent.RESUME, detail));
+ }
+
+ /**
+ * Fires a <code>SUSPEND</code> event for this element with
+ * the given detail.
+ *
+ * @param detail event detail code
+ */
+ public void fireSuspendEvent(int detail) {
+ fireEvent(new DebugEvent(this, DebugEvent.SUSPEND, detail));
+ }
+
+ /**
+ * Fires a <code>TERMINATE</code> event for this element.
+ */
+ protected void fireTerminateEvent() {
+ fireEvent(new DebugEvent(this, DebugEvent.TERMINATE));
+ }
}
\ No newline at end of file