A massive organize imports and formatting of the sources using default Eclipse code...
[phpeclipse.git] / net.sourceforge.phpeclipse.debug.core / src / net / sourceforge / phpdt / internal / debug / core / model / PHPDebugElement.java
index e66ac6d..5cc42ea 100644 (file)
@@ -24,42 +24,54 @@ import org.eclipse.debug.core.model.IDebugTarget;
 /**
  * Common function of PHP debug model elements
  */
-public abstract class PHPDebugElement extends PlatformObject implements IDebugElement {
+public abstract class PHPDebugElement extends PlatformObject implements
+               IDebugElement {
 
        // containing target
-  protected PHPDebugTarget fTarget;
+       protected PHPDebugTarget fTarget;
 
        /**
-        * Constructs a new debug element contained in the given
-        * debug target.
-        *
-   * @param target debug target (PHP VM)
+        * Constructs a new debug element contained in the given debug target.
+        * 
+        * @param target
+        *            debug target (PHP VM)
         */
-  public PHPDebugElement(PHPDebugTarget target) {
+       public PHPDebugElement(PHPDebugTarget target) {
                fTarget = target;
        }
 
-       /* (non-Javadoc)
+       /*
+        * (non-Javadoc)
+        * 
         * @see org.eclipse.debug.core.model.IDebugElement#getModelIdentifier()
         */
        public String getModelIdentifier() {
                return null;
-    // return PHPDebugCorePlugin.PLUGIN_ID;
-    // return IPDAConstants.ID_PDA_DEBUG_MODEL;
+               // return PHPDebugCorePlugin.PLUGIN_ID;
+               // return IPDAConstants.ID_PDA_DEBUG_MODEL;
        }
-       /* (non-Javadoc)
+
+       /*
+        * (non-Javadoc)
+        * 
         * @see org.eclipse.debug.core.model.IDebugElement#getDebugTarget()
         */
        public IDebugTarget getDebugTarget() {
                return fTarget;
        }
-       /* (non-Javadoc)
+
+       /*
+        * (non-Javadoc)
+        * 
         * @see org.eclipse.debug.core.model.IDebugElement#getLaunch()
         */
        public ILaunch getLaunch() {
                return getDebugTarget().getLaunch();
        }
-       /* (non-Javadoc)
+
+       /*
+        * (non-Javadoc)
+        * 
         * @see org.eclipse.core.runtime.IAdaptable#getAdapter(java.lang.Class)
         */
        public Object getAdapter(Class adapter) {
@@ -70,17 +82,21 @@ public abstract class PHPDebugElement extends PlatformObject implements IDebugEl
        }
 
        protected void abort(String message, Throwable e) throws DebugException {
-               throw new DebugException(new Status(IStatus.ERROR, null /*DebugExamplesPlugin.getDefault().getDescriptor().getUniqueIdentifier()*/,
-                               DebugPlugin.INTERNAL_ERROR, message, e));
+               throw new DebugException(
+                               new Status(
+                                               IStatus.ERROR,
+                                               null /* DebugExamplesPlugin.getDefault().getDescriptor().getUniqueIdentifier() */,
+                                               DebugPlugin.INTERNAL_ERROR, message, e));
        }
 
        /**
         * Fires a debug event
-        *
-        * @param event the event to be fired
+        * 
+        * @param event
+        *            the event to be fired
         */
        protected void fireEvent(DebugEvent event) {
-               DebugPlugin.getDefault().fireDebugEventSet(new DebugEvent[] {event});
+               DebugPlugin.getDefault().fireDebugEventSet(new DebugEvent[] { event });
        }
 
        /**
@@ -91,20 +107,22 @@ public abstract class PHPDebugElement extends PlatformObject implements IDebugEl
        }
 
        /**
-        * Fires a <code>RESUME</code> event for this element with
-        * the given detail.
-        *
-        * @param detail event detail code
+        * 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
+        * 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));