public interface ITextViewerExtension2
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_HOVER_STATE_MASK |
| Modifier and Type | Method and Description |
|---|---|
void |
invalidateTextPresentation(int offset,
int length)
Invalidates the viewer's text presentation for the given range.
|
void |
removeTextHovers(java.lang.String contentType)
Removes all text hovers for the given content type independent from their state mask.
|
void |
setTextHover(ITextHover textViewerHover,
java.lang.String contentType,
int stateMask)
Sets this viewer's text hover for the given content type and the given state mask.
|
static final int DEFAULT_HOVER_STATE_MASK
void invalidateTextPresentation(int offset,
int length)
offset - the offset of the first character to be redrawnlength - the length of the range to be redrawnvoid setTextHover(ITextHover textViewerHover, java.lang.String contentType, int stateMask)
null, any hover installed for the given content type and state mask is removed.textViewerHover - the new hover or nullcontentType - the type for which the hover is to be registered or unregisteredstateMask - the SWT event state mask; DEFAULT_HOVER_STATE_MASK indicates that
the hover is installed as the default hover.void removeTextHovers(java.lang.String contentType)
Note: To remove a hover for a given content type and state mask
use setTextHover(ITextHover, String, int) with null
as parameter for the text hover.
contentType - the type for which all text hovers are to be unregistered