public interface IResourceDiff extends ITwoWayDiff
This interface is not intended to be implemented by clients.
Clients that need to create deltas should instead use or subclass
ResourceDiff
IDiffTree
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.Guidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.