|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.team.ui.history.HistoryPageSource
org.eclipse.team.ui.history.ElementLocalHistoryPageSource
public abstract class ElementLocalHistoryPageSource
A history page source that can create history pages for a sub-element of a file.
| Constructor Summary | |
|---|---|
ElementLocalHistoryPageSource()
Create an instance of the page source. |
|
| Method Summary | |
|---|---|
boolean |
canShowHistoryFor(java.lang.Object object)
Returns true if this history page source can show a history for the given object, false if it cannot |
Page |
createPage(java.lang.Object object)
Called by the history view to create the page for this IFileHistoryProvider. |
protected abstract IFile |
getFile(java.lang.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,
java.lang.Object element)
Return the previous edition from the local history of the given element located in the given file. |
| Methods inherited from class org.eclipse.team.ui.history.HistoryPageSource |
|---|
getHistoryPageSource |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ElementLocalHistoryPageSource()
| Method Detail |
|---|
public static ITypedElement getPreviousEdition(IFile file,
java.lang.Object element)
throws TeamException
null is returned if a previous edition could not be found.
file - the file containing the elementelement - the element
null
TeamExceptionpublic final boolean canShowHistoryFor(java.lang.Object object)
IHistoryPageSource
object - the object that is to have history shown
public final Page createPage(java.lang.Object object)
IHistoryPageSourceIHistoryPage.
object - the object whose history is to be shown
IHistoryPageprotected abstract IFile getFile(java.lang.Object element)
null
if this page source can not show history for the given element.
element - the element
null
|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.