public interface IFileRevision
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. |
String |
getName()
Returns the name of the file to which this state is associated
|
IStorage |
getStorage(IProgressMonitor monitor)
Returns the storage for this file revision.
|
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. |
boolean |
isPropertyMissing()
Returns whether this particular file revision has at least one supported property
missing.
|
IFileRevision |
withAllProperties(IProgressMonitor monitor)
Returns an
IFileRevision with all supported properties present. |
IStorage getStorage(IProgressMonitor monitor) throws CoreException
IFile clients can assume that this
file state represents the current state of
the returned IFile.monitor - a progress monitorCoreException - if an error occursString getName()
URI getURI()
null if the file does not have a URI.long getTimestamp()
-1
if the timestamp is unknown.System.currentTimeMillis()boolean exists()
String getContentIdentifier()
null if one is not available. If null
is returned, clients can use the timestamp to differentiate
revisions.nullString getAuthor()
null if
this information is not available.nullString getComment()
null if
this information is not available.nullITag[] getBranches()
ITag[] getTags()
boolean isPropertyMissing()
withAllProperties(IProgressMonitor).IFileRevision withAllProperties(IProgressMonitor monitor) throws CoreException
IFileRevision with all supported properties present.monitor - a monitorCoreException - if an error occurs
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.