|
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.jface.text.revisions.RevisionInformation
Encapsulates revision information for one line-based document.
Clients may instantiate.
Revision
Constructor Summary | |
---|---|
RevisionInformation()
Creates a new revision information model. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RevisionInformation()
Method Detail |
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
)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)
creator
- the control creatorpublic void setInformationPresenterControlCreator(IInformationControlCreator creator)
creator
- the control creator
|
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.