|
Eclipse Platform Release 3.3 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.eclipse.team.ui.history.RevisionAnnotationController
Helper class that coordinates the selection behavior between an editor revision ruler and a history list such as one shown in the history view. In other words, the selection in the history list will be reflected in the revision rule and vice versa.
Revision,
RevisionInformation| Constructor Summary | |
|---|---|
RevisionAnnotationController(IWorkbenchPage page,
IFile file,
ISelectionProvider historyList)
Create a controller that links an editor on a local file to a history list. |
|
RevisionAnnotationController(IWorkbenchPage page,
IStorageEditorInput editorInput,
ISelectionProvider historyList)
Create a controller that links an editor input on a remote file to a history list. |
|
| Method Summary | |
|---|---|
void |
dispose()
Dispose of the controller. |
protected abstract Object |
getHistoryEntry(Revision selected)
Return the history list entry corresponding to the provided revision. |
protected String |
getRevisionId(Object historyEntry)
Return the revision id associated with the given history list entry. |
static AbstractDecoratedTextEditor |
openEditor(IWorkbenchPage page,
IFile file)
Open a text editor that supports the use of a revision ruler on the given file. |
static AbstractDecoratedTextEditor |
openEditor(IWorkbenchPage page,
Object fileRevision,
IStorage storage)
Open a text editor that supports the use of a revision ruler on the given file. |
protected void |
revisionSelected(Revision selected)
Callback from the ruler when a particular revision has been selected by the user. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RevisionAnnotationController(IWorkbenchPage page,
IFile file,
ISelectionProvider historyList)
page - the workbench pagefile - the local filehistoryList - the history list selection provider
public RevisionAnnotationController(IWorkbenchPage page,
IStorageEditorInput editorInput,
ISelectionProvider historyList)
page - the workbench pageeditorInput - the editor input for the remote filehistoryList - the history list selection provider| Method Detail |
public static AbstractDecoratedTextEditor openEditor(IWorkbenchPage page,
IFile file)
throws PartInitException
page - the page in which the editor is to be openedfile - the file to be edited
PartInitException
public static AbstractDecoratedTextEditor openEditor(IWorkbenchPage page,
Object fileRevision,
IStorage storage)
throws PartInitException
page - the page in which the editor is to be openedfileRevision - the file revision objectstorage - the storage that provides access to the contents of the file revision
PartInitExceptionpublic void dispose()
protected void revisionSelected(Revision selected)
getHistoryEntry(Revision). Subclasses may override.
selected - the selected revisionprotected abstract Object getHistoryEntry(Revision selected)
revisionSelected(Revision) method in
order to determine what the selection of the history list selection provider
should be set to.
selected - the selected revision.
protected String getRevisionId(Object historyEntry)
IFileRevision or
IResourceVariant in order to obtain the content identifier. Subclasses may override.
historyEntry - the history list entry
|
Eclipse Platform Release 3.3 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2007. All rights reserved.