public interface IVerticalRuler extends IVerticalRulerInfo
IVerticalRulerInfo).
In order to provide backward compatibility for clients of
IVerticalRuler, extension interfaces are used as a means of
evolution. The following extension interfaces exist:
IVerticalRulerExtension since
version 2.0 introducing setters for font and mouse button activity location.
Clients may implement this interface or use the default implementation
provided by CompositeRuler and
VerticalRuler.
IVerticalRulerExtension,
ITextViewer| Modifier and Type | Method and Description |
|---|---|
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 view port.
|
getControl, getLineOfLastMouseButtonActivity, getWidth, toDocumentLineNumbervoid setModel(IAnnotationModel model)
null is acceptable and clears the ruler.model - the new annotation model, may be nullIAnnotationModel getModel()
null
if the ruler has no model.null if there is no modelvoid update()
Control createControl(Composite parent, ITextViewer textViewer)
parent - the parent control of the ruler's controltextViewer - the text viewer to which this ruler belongsGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.