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<RevisionRange> |
getRanges()
Returns the line ranges of this revision information.
|
List<Revision> |
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<Revision> getRevisions()
public List<RevisionRange> getRanges()
IRevisionListener
for a way to be informed when the revision information changes. The
returned list is sorted by document offset.IRevisionListener
public void applyDiff(org.eclipse.jface.internal.text.revisions.Hunk[] hunks)
hunks
- the diff hunks to adjust the revision information topublic IInformationControlCreator getHoverControlCreator()
ITextHoverExtension
null
getHoverControlCreator
in interface ITextHoverExtension
null
public IInformationControlCreator getInformationPresenterControlCreator()
getInformationPresenterControlCreator
in interface IInformationProviderExtension2
null
public 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, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.