Whole refactor.
[phpeclipse.git] / net.sourceforge.phpeclipse.xdebug.core / src / net / sourceforge / phpeclipse / xdebug / php / model / XDebugElement.java
index b103f17..5f63ef0 100644 (file)
@@ -1,28 +1,21 @@
 /**
- * 
+ * @author Christian
+ *
  */
-package net.sourceforge.phpeclipse.xdebug.php.model;
-
 
+package net.sourceforge.phpeclipse.xdebug.php.model;
 
 import net.sourceforge.phpeclipse.xdebug.php.launching.IXDebugConstants;
-
 import org.eclipse.core.runtime.PlatformObject;
 import org.eclipse.debug.core.DebugEvent;
-import org.eclipse.debug.core.DebugException;
 import org.eclipse.debug.core.DebugPlugin;
 import org.eclipse.debug.core.ILaunch;
 import org.eclipse.debug.core.model.IDebugElement;
 import org.eclipse.debug.core.model.IDebugTarget;
 
-/**
- * @author Christian
- *
- */
 public class XDebugElement extends PlatformObject implements IDebugElement {
-       
        // containing target 
-       protected XDebugTarget fTarget;
+       private XDebugTarget fTarget;
        
        /**
         * Constructs a new debug element contained in the given
@@ -51,10 +44,6 @@ public class XDebugElement extends PlatformObject implements IDebugElement {
                return fTarget;
        }
        
-       public void setDebugTarget(XDebugTarget target) {
-               fTarget=target;
-       }
-
        /* (non-Javadoc)
         * @see org.eclipse.debug.core.model.IDebugElement#getLaunch()
         */
@@ -71,13 +60,6 @@ public class XDebugElement extends PlatformObject implements IDebugElement {
                return super.getAdapter(adapter);
        }
        
-       protected void abort(String message, Throwable e) throws DebugException {
-/*     Axel auskommentiert
-               throw new DebugException(new Status(IStatus.ERROR, DebugExamplesPlugin.getDefault().getDescriptor().getUniqueIdentifier(), 
-                               DebugPlugin.INTERNAL_ERROR, message, e));
-*/
-               }
-       
        /**
         * Fires a debug event
         * 
@@ -85,41 +67,5 @@ public class XDebugElement extends PlatformObject implements IDebugElement {
         */
        protected void fireEvent(DebugEvent event) {
                DebugPlugin.getDefault().fireDebugEventSet(new DebugEvent[] {event});
-       }
-       
-       /**
-        * 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