|
Eclipse Platform Release 3.3 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Represents an individual revision of a file.
This interface is not intended to be implemented by clients. Clients can
instead subclass 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. |
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. |
Method Detail |
public 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 monitor
CoreException
public String getName()
public URI getURI()
null
if the file does not have a URI.
public long getTimestamp()
-1
if the timestamp is unknown.
System.currentTimeMillis()
public boolean exists()
public String getContentIdentifier()
null
if one is not available. If null
is returned, clients can use the timestamp to differentiate
revisions.
null
public String getAuthor()
null
if
this information is not available.
null
public String getComment()
null
if
this information is not available.
null
public ITag[] getTags()
public boolean isPropertyMissing()
withAllProperties(IProgressMonitor)
.
public IFileRevision withAllProperties(IProgressMonitor monitor) throws CoreException
IFileRevision
with all supported properties present.
monitor
- a monitor
CoreException
|
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.