Deltas have a different status depending on the kind of change they represent. The list below summarizes each status (as returned by {@link #getKind}) and its meaning (see individual constants for a more detailled description):
Move operations are indicated by other change flags, layered on top of the change flags described above. If element A is moved to become B, the delta for the change in A will have status {@link #REMOVED}, with change flag {@link #F_MOVED_TO}. In this case, {@link #getMovedToElement} on delta A will return the handle for B.The delta for B will have status {@link #ADDED}, with change flag {@link #F_MOVED_FROM}, and {@link #getMovedFromElement} on deltaB will return the handle for A. (Note, the handle to A in this case represents an element that no longer exists).
Note that the move change flags only describe the changes to a single element, they do not imply anything about the parent or children of the element.
The {@link #F_ADDED_TO_CLASSPATH}, {@link #F_REMOVED_FROM_CLASSPATH} and{@link #F_CLASSPATH_REORDER} flags are triggered by changes to a project's classpath. They do not mean thatthe underlying resource was added, removed or changed. For example, if a project P already contains a folder src, then adding a classpath entry with the 'P/src' path to the project's classpath will result in an {@link IJavaElementDelta} with the {@link #F_ADDED_TO_CLASSPATH} flag for the {@link IPackageFragmentRoot} P/src.On the contrary, if a resource is physically added, removed or changed and this resource corresponds to a classpath entry of the project, then an {@link IJavaElementDelta} with the {@link #ADDED}, {@link #REMOVED}, or {@link #CHANGED} kind will be fired.
Note that when a source attachment path or a source attachment root path is changed, then the flags of the delta contain both {@link #F_SOURCEATTACHED} and {@link #F_SOURCEDETACHED}.
No assumptions should be made on whether the java element delta tree is rooted at the {@link IJavaModel}level or not.
{@link IJavaElementDelta} object are not valid outside the dynamic scopeof the notification.
This interface is not intended to be implemented by clients.
Deltas have a different status depending on the kind of change they represent. The list below summarizes each status (as returned by {@link #getKind}) and its meaning (see individual constants for a more detailled description):
Move operations are indicated by other change flags, layered on top of the change flags described above. If element A is moved to become B, the delta for the change in A will have status {@link #REMOVED}, with change flag {@link #F_MOVED_TO}. In this case, {@link #getMovedToElement} on delta A will return the handle for B.The delta for B will have status {@link #ADDED}, with change flag {@link #F_MOVED_FROM}, and {@link #getMovedFromElement} on deltaB will return the handle for A. (Note, the handle to A in this case represents an element that no longer exists).
Note that the move change flags only describe the changes to a single element, they do not imply anything about the parent or children of the element.
The {@link #F_ADDED_TO_CLASSPATH}, {@link #F_REMOVED_FROM_CLASSPATH} and{@link #F_CLASSPATH_REORDER} flags are triggered by changes to a project's classpath. They do not mean thatthe underlying resource was added, removed or changed. For example, if a project P already contains a folder src, then adding a classpath entry with the 'P/src' path to the project's classpath will result in an {@link IJavaElementDelta}with the {@link #F_ADDED_TO_CLASSPATH} flag for the {@link IPackageFragmentRoot} P/src.On the contrary, if a resource is physically added, removed or changed and this resource corresponds to a classpath entry of the project, then an {@link IJavaElementDelta} with the {@link #ADDED}, {@link #REMOVED}, or {@link #CHANGED} kind will be fired.
Note that when a source attachment path or a source attachment root path is changed, then the flags of the delta contain both {@link #F_SOURCEATTACHED} and {@link #F_SOURCEDETACHED}.
No assumptions should be made on whether the java element delta tree is rooted at the {@link IJavaModel}level or not.
{@link IJavaElementDelta} object are not valid outside the dynamic scopeof the notification.
@see IElementChangedListener @see ElementChangedEvent @noimplement This interface is not intended to be implemented by clients.
|
|
|
|
|
|
|
|
|
|
|
|