|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface defines a visual component which may serve text viewers as a line oriented annotation presentation area. This interfaces comprises three contracts:
IVerticalRulerInfo
).
VerticalRuler
.
ITextViewer
,
IVerticalRulerInfo
Method Summary | |
Control |
createControl(Composite parent,
ITextViewer textViewer)
Creates the ruler's SWT control. |
IAnnotationModel |
getModel()
Returns the current annotation model of this ruler or null
if the ruler has no model. |
void |
setModel(IAnnotationModel model)
Associates an annotation model with this ruler. |
void |
update()
Forces the vertical ruler to synchronize itself with its annotation model and its viewer's viewport. |
Methods inherited from interface org.eclipse.jface.text.source.IVerticalRulerInfo |
getControl, getLineOfLastMouseButtonActivity, getWidth, toDocumentLineNumber |
Method Detail |
public void setModel(IAnnotationModel model)
null
is acceptable and clears the ruler.
model
- the new annotation model, may be null
public IAnnotationModel getModel()
null
if the ruler has no model.
null
if there is no modelpublic void update()
public Control createControl(Composite parent, ITextViewer textViewer)
parent
- the parent control of the ruler's controltextViewer
- the text viewer to which this ruler belongs
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |