public interface IFileHistoryProvider
FileHistoryProvider
.Modifier and Type | Field and Description |
---|---|
static int |
NONE
Constant flag used with
getFileHistoryFor(IResource, int, IProgressMonitor) to indicate
no flags. |
static int |
SINGLE_LINE_OF_DESCENT
Constant flag used with
getFileHistoryFor(IResource, int, IProgressMonitor) to indicate
that the resulting history will be restricted to a single line-of-descent
(e.g. a single branch). |
static int |
SINGLE_REVISION
Constant flag used with
getFileHistoryFor(IResource, int, IProgressMonitor)
to indicate that only a single revision is desired. |
Modifier and Type | Method and Description |
---|---|
IFileHistory |
getFileHistoryFor(IFileStore store,
int flags,
IProgressMonitor monitor)
Returns an
IFileHistory for the specified IFileStore . |
IFileHistory |
getFileHistoryFor(IResource resource,
int flags,
IProgressMonitor monitor)
Returns the file history for the given in resource.
|
IFileRevision |
getWorkspaceFileRevision(IResource resource)
Returns the file revision of the passed in resource or null if that file revision cannot be
determined
|
static final int NONE
getFileHistoryFor(IResource, int, IProgressMonitor)
to indicate
no flags.static final int SINGLE_REVISION
getFileHistoryFor(IResource, int, IProgressMonitor)
to indicate that only a single revision is desired.static final int SINGLE_LINE_OF_DESCENT
getFileHistoryFor(IResource, int, IProgressMonitor)
to indicate
that the resulting history will be restricted to a single line-of-descent
(e.g. a single branch). In this mode, the
IFileHistory.getContributors(IFileRevision)
and
IFileHistory.getTargets(IFileRevision)
should either return zero
or one revision.IFileHistory getFileHistoryFor(IResource resource, int flags, IProgressMonitor monitor)
SINGLE_REVISION
then only the revision corresponding to the base
corresponding to the local resource is fetched. If the flags contains
SINGLE_LINE_OF_DESCENT
the resulting history will be restricted
to a single line-of-descent (e.g. a single branch). In this mode, the
IFileHistory.getContributors(IFileRevision)
and
IFileHistory.getTargets(IFileRevision)
should either return zero
or one revision. If both flags are present, SINGLE_REVISION
should take precedence.resource
- the resourceflags
- to indicate what revisions should be included in the historymonitor
- a progress monitorIFileRevision getWorkspaceFileRevision(IResource resource)
resource
- the resourceIFileHistory getFileHistoryFor(IFileStore store, int flags, IProgressMonitor monitor)
IFileHistory
for the specified IFileStore
.store
- an IFileStoreflags
- SINGLE_REVISION
or SINGLE_LINE_OF_DESCENT
monitor
- a progress monitor
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.