4 package net.sourceforge.phpeclipse.xdebug.php.model;
8 import net.sourceforge.phpeclipse.xdebug.php.launching.IXDebugConstants;
10 //import org.eclipse.core.runtime.CoreException;
11 import org.eclipse.core.runtime.PlatformObject;
12 //import org.eclipse.debug.core.DebugEvent;
13 //import org.eclipse.debug.core.DebugException;
14 //import org.eclipse.debug.core.DebugPlugin;
15 import org.eclipse.debug.core.ILaunch;
16 import org.eclipse.debug.core.model.IDebugElement;
17 import org.eclipse.debug.core.model.IDebugTarget;
18 //import org.eclipse.debug.core.model.IVariable;
24 public class XDebugElement extends PlatformObject implements IDebugElement {
27 private XDebugTarget fTarget;
30 * Constructs a new debug element contained in the given
33 * @param target debug target (PDA VM)
35 public XDebugElement(XDebugTarget target) {
39 public XDebugElement() {
44 * @see org.eclipse.debug.core.model.IDebugElement#getModelIdentifier()
46 public String getModelIdentifier() {
47 return IXDebugConstants.ID_PHP_DEBUG_MODEL;
50 * @see org.eclipse.debug.core.model.IDebugElement#getDebugTarget()
52 public IDebugTarget getDebugTarget() {
57 * @see org.eclipse.debug.core.model.IDebugElement#getLaunch()
59 public ILaunch getLaunch() {
60 return getDebugTarget().getLaunch();
63 * @see org.eclipse.core.runtime.IAdaptable#getAdapter(java.lang.Class)
65 public Object getAdapter(Class adapter) {
66 if (adapter == IDebugElement.class) {
69 return super.getAdapter(adapter);
72 //protected void abort(String message, Throwable e) throws DebugException {
73 /* Axel auskommentiert
74 throw new DebugException(new Status(IStatus.ERROR, DebugExamplesPlugin.getDefault().getDescriptor().getUniqueIdentifier(),
75 DebugPlugin.INTERNAL_ERROR, message, e));
82 * @param event the event to be fired
84 // protected void fireEvent(DebugEvent event) {
85 // DebugPlugin.getDefault().fireDebugEventSet(new DebugEvent[] {event});
89 * Fires a <code>CREATE</code> event for this element.
91 // public void fireCreationEvent() {
92 // fireEvent(new DebugEvent(this, DebugEvent.CREATE));
96 * Fires a <code>RESUME</code> event for this element with
99 * @param detail event detail code
101 // public void fireResumeEvent(int detail) {
102 // fireEvent(new DebugEvent(this, DebugEvent.RESUME, detail));
106 * Fires a <code>SUSPEND</code> event for this element with
109 * @param detail event detail code
111 // public void fireSuspendEvent(int detail) {
112 // fireEvent(new DebugEvent(this, DebugEvent.SUSPEND, detail));
116 * Fires a <code>TERMINATE</code> event for this element.
118 // protected void fireTerminateEvent() {
119 // fireEvent(new DebugEvent(this, DebugEvent.TERMINATE));