Remove unnecessary explicit cast.
[phpeclipse.git] / net.sourceforge.phpeclipse.xdebug.core / src / net / sourceforge / phpeclipse / xdebug / php / model / XDebugElement.java
index fcfd8af..61ba588 100644 (file)
@@ -4,9 +4,10 @@
 package net.sourceforge.phpeclipse.xdebug.php.model;
 
 
-import net.sourceforge.phpeclipse.xdebug.core.ResponseData;
+
 import net.sourceforge.phpeclipse.xdebug.php.launching.IXDebugConstants;
 
+//import org.eclipse.core.runtime.CoreException;
 import org.eclipse.core.runtime.PlatformObject;
 import org.eclipse.debug.core.DebugEvent;
 import org.eclipse.debug.core.DebugException;
@@ -14,13 +15,14 @@ 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;
+//import org.eclipse.debug.core.model.IVariable;
 
 /**
  * @author Christian
  *
  */
 public class XDebugElement extends PlatformObject implements IDebugElement {
-       
+               
        // containing target 
        protected XDebugTarget fTarget;
        
@@ -34,6 +36,10 @@ public class XDebugElement extends PlatformObject implements IDebugElement {
                fTarget = target;
        }
        
+       public XDebugElement() {
+               fTarget = null;
+       }
+       
        /* (non-Javadoc)
         * @see org.eclipse.debug.core.model.IDebugElement#getModelIdentifier()
         */
@@ -46,6 +52,11 @@ public class XDebugElement extends PlatformObject implements IDebugElement {
        public IDebugTarget getDebugTarget() {
                return fTarget;
        }
+       
+       public void setDebugTarget(XDebugTarget target) {
+               fTarget=target;
+       }
+
        /* (non-Javadoc)
         * @see org.eclipse.debug.core.model.IDebugElement#getLaunch()
         */
@@ -110,11 +121,5 @@ public class XDebugElement extends PlatformObject implements IDebugElement {
         */
        protected void fireTerminateEvent() {
                fireEvent(new DebugEvent(this, DebugEvent.TERMINATE));
-       }
-       
-       public void fireDebugResponseEvent(ResponseData data) {
-               DebugEvent de=new DebugEvent(this, DebugEvent.MODEL_SPECIFIC);
-               de.setData(data);
-               fireEvent(de);
-       }
+       }       
 }
\ No newline at end of file