Package org.eclipse.jface.text
Interface ITextViewerExtension3
-
- All Known Subinterfaces:
ITextViewerExtension5
- All Known Implementing Classes:
ProjectionViewer
@Deprecated public interface ITextViewerExtension3
Deprecated.replaced byITextViewerExtension5Extension interface forITextViewer.This interface has been replaced by
ITextViewerExtension5. Clients are not supposed to use this interface any longer.- Since:
- 2.1
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description IRegiongetModelCoverage()Deprecated.Returns the minimal region of the viewer's document that completely comprises everything that is visible in the viewer's widget ornullif there is no such region.intmodelLine2WidgetLine(int modelLine)Deprecated.Returns the widget line that corresponds to the given line of the viewer's document or-1if there is no such line.intmodelOffset2WidgetOffset(int modelOffset)Deprecated.Returns the widget offset that corresponds to the given offset in the viewer's document or-1if there is no such offsetIRegionmodelRange2WidgetRange(IRegion modelRange)Deprecated.Returns the minimal region of the viewer's widget that completely comprises the given region of the viewer's document ornullif there is no such region.intwidgetLineOfWidgetOffset(int widgetOffset)Deprecated.Returns the widget line of the given widget offset.intwidgetlLine2ModelLine(int widgetLine)Deprecated.Returns the line of the viewer's document that corresponds to the given widget line or-1if there is no such line.intwidgetOffset2ModelOffset(int widgetOffset)Deprecated.Returns the offset of the viewer's document that corresponds to the given widget offset or-1if there is no such offsetIRegionwidgetRange2ModelRange(IRegion widgetRange)Deprecated.Returns the minimal region of the viewer's document that completely comprises the given widget region ornullif there is no such region.
-
-
-
Method Detail
-
getModelCoverage
IRegion getModelCoverage()
Deprecated.Returns the minimal region of the viewer's document that completely comprises everything that is visible in the viewer's widget ornullif there is no such region.- Returns:
- the minimal region of the viewer's document comprising the contents of the viewer's widget or
null
-
modelLine2WidgetLine
int modelLine2WidgetLine(int modelLine)
Deprecated.Returns the widget line that corresponds to the given line of the viewer's document or-1if there is no such line.- Parameters:
modelLine- the line of the viewer's document- Returns:
- the corresponding widget line or
-1
-
modelOffset2WidgetOffset
int modelOffset2WidgetOffset(int modelOffset)
Deprecated.Returns the widget offset that corresponds to the given offset in the viewer's document or-1if there is no such offset- Parameters:
modelOffset- the offset in the viewer's document- Returns:
- the corresponding widget offset or
-1
-
modelRange2WidgetRange
IRegion modelRange2WidgetRange(IRegion modelRange)
Deprecated.Returns the minimal region of the viewer's widget that completely comprises the given region of the viewer's document ornullif there is no such region.- Parameters:
modelRange- the region of the viewer's document- Returns:
- the minimal region of the widget comprising
modelRangeornull
-
widgetOffset2ModelOffset
int widgetOffset2ModelOffset(int widgetOffset)
Deprecated.Returns the offset of the viewer's document that corresponds to the given widget offset or-1if there is no such offset- Parameters:
widgetOffset- the widget offset- Returns:
- the corresponding offset in the viewer's document or
-1
-
widgetRange2ModelRange
IRegion widgetRange2ModelRange(IRegion widgetRange)
Deprecated.Returns the minimal region of the viewer's document that completely comprises the given widget region ornullif there is no such region.- Parameters:
widgetRange- the widget region- Returns:
- the minimal region of the viewer's document comprising
widgetRangeornull
-
widgetlLine2ModelLine
int widgetlLine2ModelLine(int widgetLine)
Deprecated.Returns the line of the viewer's document that corresponds to the given widget line or-1if there is no such line.- Parameters:
widgetLine- the widget line- Returns:
- the corresponding line of the viewer's document or
-1
-
widgetLineOfWidgetOffset
int widgetLineOfWidgetOffset(int widgetOffset)
Deprecated.Returns the widget line of the given widget offset.- Parameters:
widgetOffset- the widget offset- Returns:
- the widget line of the widget offset
-
-