org.eclipse.team.ui.history
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.
|
getHistoryPageSourcepublic 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 elementnullTeamExceptionpublic final boolean canShowHistoryFor(Object object)
IHistoryPageSourceobject - the object that is to have history shownpublic final Page createPage(Object object)
IHistoryPageSourceIHistoryPage.object - the object whose history is to be shownIHistoryPageGuidelines for using Eclipse APIs. Copyright (c) Eclipse contributors and others 2000, 2011. All rights reserved.