|
Eclipse Platform Release 3.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.team.core.history.provider.FileRevision
public abstract class FileRevision
Abstract implementation of IFileRevision that can be implemented by
clients.
IFileRevision| Constructor Summary | |
|---|---|
FileRevision()
|
|
| Method Summary | |
|---|---|
boolean |
exists()
Returns whether the file represented by this state exists. |
String |
getAuthor()
Returns the author of this revision or null if
this information is not available. |
ITag[] |
getBranches()
Returns the branches names of file revision. |
String |
getComment()
Returns the comment for this file revision or null if
this information is not available. |
String |
getContentIdentifier()
Returns the unique identifier for this file revision or null if one is not available. |
static IFileRevision |
getFileRevisionFor(IFile file)
Deprecated. This method doesn't do anything useful so it has been deprecated. |
ITag[] |
getTags()
Returns the set of tags available for this file revision. |
long |
getTimestamp()
Returns the time stamp of this revision as a long or -1
if the timestamp is unknown. |
URI |
getURI()
Returns the URI of the file to which this state is associated or null if the file does not have a URI. |
| 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.history.IFileRevision |
|---|
getName, getStorage, isPropertyMissing, withAllProperties |
| Constructor Detail |
|---|
public FileRevision()
| Method Detail |
|---|
public static IFileRevision getFileRevisionFor(IFile file)
file - a local file
public URI getURI()
IFileRevisionnull if the file does not have a URI.
getURI in interface IFileRevisionpublic long getTimestamp()
IFileRevision-1
if the timestamp is unknown.
getTimestamp in interface IFileRevisionSystem.currentTimeMillis()public boolean exists()
IFileRevision
exists in interface IFileRevisionpublic String getContentIdentifier()
IFileRevisionnull if one is not available. If null
is returned, clients can use the timestamp to differentiate
revisions.
getContentIdentifier in interface IFileRevisionnullpublic String getAuthor()
IFileRevisionnull if
this information is not available.
getAuthor in interface IFileRevisionnullpublic String getComment()
IFileRevisionnull if
this information is not available.
getComment in interface IFileRevisionnullpublic ITag[] getBranches()
getBranches in interface IFileRevisionpublic ITag[] getTags()
IFileRevision
getTags in interface IFileRevision
|
Eclipse Platform Release 3.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2011. All rights reserved.