|
Eclipse Platform Release 3.3 |
|||||||||||
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
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. |
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)
Return a file state representing the current state of the local file. |
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()
IFileRevision
null
if the file does not have a URI.
getURI
in interface IFileRevision
public long getTimestamp()
IFileRevision
-1
if the timestamp is unknown.
getTimestamp
in interface IFileRevision
System.currentTimeMillis()
public boolean exists()
IFileRevision
exists
in interface IFileRevision
public String getContentIdentifier()
IFileRevision
null
if one is not available. If null
is returned, clients can use the timestamp to differentiate
revisions.
getContentIdentifier
in interface IFileRevision
null
public String getAuthor()
IFileRevision
null
if
this information is not available.
getAuthor
in interface IFileRevision
null
public String getComment()
IFileRevision
null
if
this information is not available.
getComment
in interface IFileRevision
null
public ITag[] getTags()
IFileRevision
getTags
in interface IFileRevision
|
Eclipse Platform Release 3.3 |
|||||||||||
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, 2007. All rights reserved.