A massive organize imports and formatting of the sources using default Eclipse code...
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / core / ElementChangedEvent.java
index 9c16bea..ad7e315 100644 (file)
@@ -13,29 +13,29 @@ package net.sourceforge.phpdt.core;
 import java.util.EventObject;
 
 /**
- * An element changed event describes a change to the structure or contents
- * of a tree of Java elements. The changes to the elements are described by
- * the associated delta object carried by this event.
+ * An element changed event describes a change to the structure or contents of a
+ * tree of Java elements. The changes to the elements are described by the
+ * associated delta object carried by this event.
  * <p>
  * This class is not intended to be instantiated or subclassed by clients.
  * Instances of this class are automatically created by the Java model.
  * </p>
- *
+ * 
  * @see IElementChangedListener
  * @see IJavaElementDelta
  */
 public class ElementChangedEvent extends EventObject {
-       
+
        /**
-        * Event type constant (bit mask) indicating an after-the-fact 
-        * report of creations, deletions, and modifications
-        * to one or more Java element(s) expressed as a hierarchical
-        * java element delta as returned by <code>getDelta()</code>.
-        *
+        * Event type constant (bit mask) indicating an after-the-fact report of
+        * creations, deletions, and modifications to one or more Java element(s)
+        * expressed as a hierarchical java element delta as returned by
+        * <code>getDelta()</code>.
+        * 
         * Note: this notification occurs during the corresponding POST_CHANGE
         * resource change notification, and contains a full delta accounting for
-        * any JavaModel operation  and/or resource change.
-        *
+        * any JavaModel operation and/or resource change.
+        * 
         * @see IJavaElementDelta
         * @see org.eclipse.core.resources.IResourceChangeEvent
         * @see #getDelta()
@@ -44,18 +44,19 @@ public class ElementChangedEvent extends EventObject {
        public static final int POST_CHANGE = 1;
 
        /**
-        * Event type constant (bit mask) indicating an after-the-fact 
-        * report of creations, deletions, and modifications
-        * to one or more Java element(s) expressed as a hierarchical
-        * java element delta as returned by <code>getDelta</code>.
-        *
+        * Event type constant (bit mask) indicating an after-the-fact report of
+        * creations, deletions, and modifications to one or more Java element(s)
+        * expressed as a hierarchical java element delta as returned by
+        * <code>getDelta</code>.
+        * 
         * Note: this notification occurs during the corresponding PRE_AUTO_BUILD
-        * resource change notification. The delta, which is notified here, only contains
-        * information relative to the previous JavaModel operations (in other words, 
-        * it ignores the possible resources which have changed outside Java operations). 
-        * In particular, it is possible that the JavaModel be inconsistent with respect to
-        * resources, which got modified outside JavaModel operations (it will only be
-        * fully consistent once the POST_CHANGE notification has occurred).
+        * resource change notification. The delta, which is notified here, only
+        * contains information relative to the previous JavaModel operations (in
+        * other words, it ignores the possible resources which have changed outside
+        * Java operations). In particular, it is possible that the JavaModel be
+        * inconsistent with respect to resources, which got modified outside
+        * JavaModel operations (it will only be fully consistent once the
+        * POST_CHANGE notification has occurred).
         * 
         * @see IJavaElementDelta
         * @see org.eclipse.core.resources.IResourceChangeEvent
@@ -65,50 +66,51 @@ public class ElementChangedEvent extends EventObject {
        public static final int PRE_AUTO_BUILD = 2;
 
        /**
-        * Event type constant (bit mask) indicating an after-the-fact 
-        * report of creations, deletions, and modifications
-        * to one or more Java element(s) expressed as a hierarchical
-        * java element delta as returned by <code>getDelta</code>.
-        *
+        * Event type constant (bit mask) indicating an after-the-fact report of
+        * creations, deletions, and modifications to one or more Java element(s)
+        * expressed as a hierarchical java element delta as returned by
+        * <code>getDelta</code>.
+        * 
         * Note: this notification occurs as a result of a working copy reconcile
         * operation.
-        *
+        * 
         * @see IJavaElementDelta
         * @see org.eclipse.core.resources.IResourceChangeEvent
         * @see #getDelta()
         * @since 2.0
         */
-       public static final int         POST_RECONCILE = 4;     
+       public static final int POST_RECONCILE = 4;
+
        /*
-        * Event type indicating the nature of this event. 
-        * It can be a combination either:
-        *  - POST_CHANGE
-        *  - PRE_AUTO_BUILD
-        *  - POST_RECONCILE
+        * Event type indicating the nature of this event. It can be a combination
+        * either: - POST_CHANGE - PRE_AUTO_BUILD - POST_RECONCILE
         */
-       private int type; 
-       
+       private int type;
+
        /**
-        * Creates an new element changed event (based on a <code>IJavaElementDelta</code>).
-        *
-        * @param delta the Java element delta.
+        * Creates an new element changed event (based on a
+        * <code>IJavaElementDelta</code>).
+        * 
+        * @param delta
+        *            the Java element delta.
         */
        public ElementChangedEvent(IJavaElementDelta delta, int type) {
                super(delta);
                this.type = type;
        }
+
        /**
         * Returns the delta describing the change.
-        *
+        * 
         * @return the delta describing the change
         */
        public IJavaElementDelta getDelta() {
                return (IJavaElementDelta) source;
        }
-       
+
        /**
         * Returns the type of event being reported.
-        *
+        * 
         * @return one of the event type constants
         * @see #POST_CHANGE
         * @see #PRE_AUTO_BUILD