public interface IResourceDiff extends ITwoWayDiff
IDiffTree
ResourceDiff
Modifier and Type | Field and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
getFlags, getFromPath, getToPath
getKind, getPath, toDiffString
static final int OPEN
static final int DESCRIPTION
IResource getResource()
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.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.
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.