public abstract class FileRevision extends Object implements IFileRevision
IFileRevision
that can be implemented by
clients.IFileRevision
Constructor and Description |
---|
FileRevision() |
Modifier and Type | Method and Description |
---|---|
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. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName, getStorage, isPropertyMissing, withAllProperties
public static IFileRevision getFileRevisionFor(IFile file)
file
- a local filepublic 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[] getBranches()
getBranches
in interface IFileRevision
public ITag[] getTags()
IFileRevision
getTags
in interface IFileRevision
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.