|
Eclipse Platform Release 3.2 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.eclipse.team.core.diff.provider.Diff
org.eclipse.team.core.diff.provider.TwoWayDiff
org.eclipse.team.core.mapping.provider.ResourceDiff
Implementation of IResourceDiff.
This class may be subclassed by clients.
EXPERIMENTAL. This class or interface has been added as part of a work in progress. There is a guarantee neither that this API will work nor that it will remain the same. Please do not use this API without consulting with the Platform/Team team.
| Field Summary |
|---|
| Fields inherited from class org.eclipse.team.core.diff.provider.TwoWayDiff |
|---|
FLAG_MASK |
| Fields inherited from class org.eclipse.team.core.diff.provider.Diff |
|---|
KIND_MASK |
| Fields inherited from interface org.eclipse.team.core.mapping.IResourceDiff |
|---|
DESCRIPTION, OPEN |
| 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 |
| Constructor Summary | |
|---|---|
ResourceDiff(IResource resource,
int kind)
Convenience constructor for creating a simple folder diff that consists of a resource and a kind only. |
|
ResourceDiff(IResource resource,
int kind,
int flags,
IFileRevision before,
IFileRevision after)
Create a two-way resource diff |
|
| 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 class org.eclipse.team.core.diff.provider.TwoWayDiff |
|---|
getFlags, getFromPath, getToPath |
| Methods inherited from class org.eclipse.team.core.diff.provider.Diff |
|---|
getKind, getPath, getStatus, toDiffString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 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 |
| Constructor Detail |
public ResourceDiff(IResource resource,
int kind,
int flags,
IFileRevision before,
IFileRevision after)
resource - the resourcekind - the kind of change (ADDED, REMOVED or CHANGED)flags - additional flags that describe the changebefore - the before state of the model objectafter - the after state of the model object
public ResourceDiff(IResource resource,
int kind)
ResourceDiff(resource, kind, 0, null, null)
- Parameters:
resource - a resourcekind - the kind of change (ADDED, REMOVED or CHANGED)| Method Detail |
public IFileRevision getBeforeState()
IResourceDiffnull 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.
getBeforeState in interface IResourceDiffpublic IFileRevision getAfterState()
IResourceDiffnull 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.
getAfterState in interface IResourceDiffpublic IResource getResource()
IResourceDiff
getResource in interface IResourceDiff
|
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, 2005. All rights reserved.