Package org.eclipse.jface.text
Interface DefaultInformationControl.IInformationPresenterExtension
-
- Enclosing class:
- DefaultInformationControl
public static interface DefaultInformationControl.IInformationPresenterExtension
An information presenter determines the style presentation of information displayed in the default information control. The interface can be implemented by clients.- Since:
- 3.2
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
updatePresentation(Drawable drawable, String hoverInfo, TextPresentation presentation, int maxWidth, int maxHeight)
Updates the given presentation of the given information and thereby may manipulate the information to be displayed.
-
-
-
Method Detail
-
updatePresentation
String updatePresentation(Drawable drawable, String hoverInfo, TextPresentation presentation, int maxWidth, int maxHeight)
Updates the given presentation of the given information and thereby may manipulate the information to be displayed. The manipulation could be the extraction of textual encoded style information etc. Returns the manipulated information.Replaces
DefaultInformationControl.IInformationPresenter.updatePresentation(Display, String, TextPresentation, int, int)
Implementations should use the font of the givendrawable
to calculate the size of the text to be presented.- Parameters:
drawable
- the drawable of the information controlhoverInfo
- the information to be presentedpresentation
- the presentation to be updatedmaxWidth
- the maximal width in pixelsmaxHeight
- the maximal height in pixels- Returns:
- the manipulated information
-
-