Class FileRevision
java.lang.Object
org.eclipse.team.core.history.provider.FileRevision
- All Implemented Interfaces:
IFileRevision
Abstract implementation of
IFileRevision that can be implemented by
clients.- Since:
- 3.2
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanexists()Returns whether the file represented by this state exists.Returns the author of this revision ornullif this information is not available.ITag[]Returns the branches names of file revision.Returns the comment for this file revision ornullif this information is not available.Returns the unique identifier for this file revision ornullif one is not available.static IFileRevisiongetFileRevisionFor(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.longReturns the time stamp of this revision as a long or-1if the timestamp is unknown.getURI()Returns the URI of the file to which this state is associated ornullif the file does not have a URI.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.team.core.history.IFileRevision
getName, getStorage, isPropertyMissing, withAllProperties
-
Constructor Details
-
FileRevision
public FileRevision()
-
-
Method Details
-
getFileRevisionFor
Deprecated.This method doesn't do anything useful so it has been deprecated.Return a file state representing the current state of the local file.- Parameters:
file- a local file- Returns:
- a file state representing the current state of the local file
-
getURI
Description copied from interface:IFileRevisionReturns the URI of the file to which this state is associated ornullif the file does not have a URI.- Specified by:
getURIin interfaceIFileRevision- Returns:
- URI of the file to which this state is associated
-
getTimestamp
public long getTimestamp()Description copied from interface:IFileRevisionReturns the time stamp of this revision as a long or-1if the timestamp is unknown.- Specified by:
getTimestampin interfaceIFileRevision- Returns:
- a long that represents the time of this revision as the number of milliseconds since the base time
- See Also:
-
exists
public boolean exists()Description copied from interface:IFileRevisionReturns whether the file represented by this state exists.- Specified by:
existsin interfaceIFileRevision- Returns:
- whether the file represented by this state exists
-
getContentIdentifier
Description copied from interface:IFileRevisionReturns the unique identifier for this file revision ornullif one is not available. Ifnullis returned, clients can use the timestamp to differentiate revisions.- Specified by:
getContentIdentifierin interfaceIFileRevision- Returns:
- the unique identifier for this file revision
or
null
-
getAuthor
Description copied from interface:IFileRevisionReturns the author of this revision ornullif this information is not available.- Specified by:
getAuthorin interfaceIFileRevision- Returns:
- the author of this revision or
null
-
getComment
Description copied from interface:IFileRevisionReturns the comment for this file revision ornullif this information is not available.- Specified by:
getCommentin interfaceIFileRevision- Returns:
- the comment for this file revision or
null
-
getBranches
Returns the branches names of file revision.- Specified by:
getBranchesin interfaceIFileRevision- Returns:
- an array of ITag's if branch names exist for this revision or an empty ITag array if no names exist
- Since:
- 3.6
-
getTags
Description copied from interface:IFileRevisionReturns the set of tags available for this file revision.- Specified by:
getTagsin interfaceIFileRevision- Returns:
- an array of ITag's if ITags exist for this revision or an empty ITag array if no tags exist
-