public abstract class ElementLocalHistoryPageSource extends HistoryPageSource
Constructor and Description |
---|
ElementLocalHistoryPageSource()
Create an instance of the page source.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canShowHistoryFor(Object object)
Returns true if this history page source can show a history for the given object, false if it cannot
|
Page |
createPage(Object object)
Called by the history view to create the page for this IFileHistoryProvider.
|
protected abstract IFile |
getFile(Object element)
Return the file that contains the given element of
null
if this page source can not show history for the given element. |
static ITypedElement |
getPreviousEdition(IFile file,
Object element)
Return the previous edition from the local history of the given element located in the given
file.
|
IFile |
internalGetFile(Object element)
Return the file that contains the given element of
null if this page source can
not show history for the given element. |
getHistoryPageSource
public ElementLocalHistoryPageSource()
public static ITypedElement getPreviousEdition(IFile file, Object element) throws TeamException
null
is returned if a previous edition could not be found.file
- the file containing the elementelement
- the elementnull
TeamException
public final boolean canShowHistoryFor(Object object)
IHistoryPageSource
object
- the object that is to have history shownpublic final Page createPage(Object object)
IHistoryPageSource
IHistoryPage
.object
- the object whose history is to be shownIHistoryPage
protected abstract IFile getFile(Object element)
null
if this page source can not show history for the given element.element
- the elementnull
public final IFile internalGetFile(Object element)
null
if this page source can
not show history for the given element.element
- the elementnull
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.