public interface IVerticalRulerInfo
IVerticalRulerInfo
, extension interfaces are used as a means
of evolution. The following extension interfaces exist:
IVerticalRulerInfoExtension
since
version 3.0 allowing custom annotation hovers and specific annotation models.
IVerticalRulerInfoExtension
Modifier and Type | Method and Description |
---|---|
Control |
getControl()
Returns the ruler's SWT control.
|
int |
getLineOfLastMouseButtonActivity()
Returns the line number of the last mouse button activity.
|
int |
getWidth()
Returns the width of this ruler's control.
|
int |
toDocumentLineNumber(int y_coordinate)
Translates a y-coordinate of the ruler's SWT control into
the according line number of the document of the connected text viewer.
|
Control getControl()
int getLineOfLastMouseButtonActivity()
-1
if
the last mouse activity does not correspond to a valid document lineint toDocumentLineNumber(int y_coordinate)
y_coordinate
- a y-coordinate of the ruler's SWT control-1
if that
coordinate does not correspond to a valid document lineint getWidth()
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.