Once configured, an instance may be installed (see {@link #install(IPreferenceStore) install}) on a preference store, from then on monitoring the configured preference settings and changing the respective decorations. Calling {@link #uninstall() uninstall} will unregister thelisteners with the preferences store and must be called before changing the preference store by another call to install
.
{@link #dispose() dispose} will uninstall the support and remove anydecorations from the viewer. It is okay to reuse a SourceViewerDecorationSupport
instance after disposing it.
SourceViewerDecorationSupport
can draw the following decorations:
Subclasses may add decorations but should adhere to the lifecyle described above.
@see org.eclipse.jface.text.source.AnnotationPainter @since 2.1
|
|