|
Eclipse Platform Release 3.2 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A resource diff represents the changes between two resources. The diff can be used to describe the change between an ancestor and remote, an ancestor and local or between the local and a remote for two-way comparisons.
This interface is not intended to be implemented by clients.
Clients that need to create deltas should instead use or subclass
ResourceDiff
IDiffTree
Field Summary | |
---|---|
static int |
DESCRIPTION
Change constant (bit mask) indicating that a project's description has changed. |
static int |
OPEN
Change constant (bit mask) indicating that the resource was opened or closed. |
Fields inherited from interface org.eclipse.team.core.diff.ITwoWayDiff |
---|
CONTENT, COPY_FROM, MOVE_FROM, MOVE_TO, REPLACE |
Fields inherited from interface org.eclipse.team.core.diff.IDiff |
---|
ADD, CHANGE, NO_CHANGE, REMOVE |
Method Summary | |
---|---|
IFileRevision |
getAfterState()
Return a handle to the file state representing the "after" state of the file used to calculate this diff. |
IFileRevision |
getBeforeState()
Return a handle to the file state representing the "before" state of the file used to calculate this diff. |
IResource |
getResource()
Return the local resource to which this diff applies. |
Methods inherited from interface org.eclipse.team.core.diff.ITwoWayDiff |
---|
getFlags, getFromPath, getToPath |
Methods inherited from interface org.eclipse.team.core.diff.IDiff |
---|
getKind, getPath, toDiffString |
Field Detail |
public static final int OPEN
ITwoWayDiff.getFlags()
,
IResourceDelta.OPEN
,
Constant Field Valuespublic static final int DESCRIPTION
ITwoWayDiff.getFlags()
,
IResourceDelta.DESCRIPTION
,
Constant Field ValuesMethod Detail |
public IResource getResource()
public IFileRevision getBeforeState()
null
is
returned if the resource is not a file or if the file does not exist in
the before state. If a file state is returned, clients should still
check the IFileState.exists()
method to see if the file
existed in the before state.
public IFileRevision getAfterState()
null
is
returned if the resource is not a file or if the file does not exist in
the after state. If a file state is returned, clients should still
check the IFileState.exists()
method to see if the file
existed in the after state.
|
Eclipse Platform Release 3.2 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.