public interface IFileRevision
This interface is not intended to be implemented by clients. Clients can
instead subclass 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. |
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 monitorCoreExceptionString 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[] getTags()
boolean isPropertyMissing()
withAllProperties(IProgressMonitor).IFileRevision withAllProperties(IProgressMonitor monitor) throws CoreException
IFileRevision with all supported properties present.monitor - a monitorCoreExceptionGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.