public final class RevisionInformation extends Object implements ITextHoverExtension, IInformationProviderExtension2
Clients may instantiate.
Revision| Constructor and Description |
|---|
RevisionInformation()
Creates a new revision information model.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addRevision(Revision revision)
Adds a revision.
|
void |
applyDiff(org.eclipse.jface.internal.text.revisions.Hunk[] hunks)
Adjusts the revision information to the given diff information.
|
IInformationControlCreator |
getHoverControlCreator()
Returns the hover control creator of this text hover or
null |
IInformationControlCreator |
getInformationPresenterControlCreator()
Returns the information control creator of this information provider.
|
List |
getRanges()
Returns the line ranges of this revision information.
|
List |
getRevisions()
Returns the contained revisions.
|
void |
setHoverControlCreator(IInformationControlCreator creator)
Sets the hover control creator.
|
void |
setInformationPresenterControlCreator(IInformationControlCreator creator)
Sets the information presenter control creator.
|
public RevisionInformation()
public void addRevision(Revision revision)
revision - a revisionpublic List getRevisions()
Revision)public List getRanges()
IRevisionListener for a way to be informed when the revision information changes. The
returned list is sorted by document offset.RevisionRange)IRevisionListenerpublic void applyDiff(org.eclipse.jface.internal.text.revisions.Hunk[] hunks)
hunks - the diff hunks to adjust the revision information topublic IInformationControlCreator getHoverControlCreator()
ITextHoverExtensionnullgetHoverControlCreator in interface ITextHoverExtensionnullpublic IInformationControlCreator getInformationPresenterControlCreator()
getInformationPresenterControlCreator in interface IInformationProviderExtension2nullpublic void setHoverControlCreator(IInformationControlCreator creator)
Note: The created information control must be able to display the object
returned by the concrete implementation of Revision.getHoverInfo().
creator - the control creatorpublic void setInformationPresenterControlCreator(IInformationControlCreator creator)
creator - the control creator
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.