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, toDocumentLineNumber
void setModel(IAnnotationModel model)
null
is acceptable and clears the ruler.model
- the new annotation model, may be null
IAnnotationModel 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 belongs
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.