public interface IHighlighterProvider
IHighlighterProvider interface is provided by viewers that
supporting highlighting within the content viewer pane.IContentViewer,
IContentDescriptor| Modifier and Type | Method and Description |
|---|---|
void |
addHighlightingListener(IHighlightingListener listener)
Adds a listener for highlighting changes.
|
void |
clear(java.util.EventObject causingEvent)
The provider clears all the highlighting capabilities on the viewer until
the next call to the method
setHighlightingInfo. |
IContentDescriptor |
getHighlightingInfo()
Returns the current content descriptor used for highlighting purposes.
|
org.eclipse.swt.graphics.Point |
getLeftAnchor(boolean displayRelative)
Returns the location where the connect should be anchored on the left
side of the content viewer pane.
|
org.eclipse.swt.graphics.Point |
getRightAnchor(boolean displayRelative)
Returns the location where the connect should be anchored on the right
side of the content viewer pane.
|
void |
highlight(java.util.EventObject causingEvent)
The provider highlights the viewer based on current the content
descriptor information and notifies the listeners
|
void |
removeHighlightingListener(IHighlightingListener listener)
Removes a listener for highlighting changes.
|
void |
setHighlightingInfo(IContentDescriptor descriptor)
Sets the current content descriptor for highlighting purposes.
|
void setHighlightingInfo(IContentDescriptor descriptor)
IContentViewerPane. The descriptor
contains the current delta/conflict object(s) to be used and the
highlighting styledescriptor - the content descriptorIContentDescriptor getHighlightingInfo()
null if nonevoid addHighlightingListener(IHighlightingListener listener)
listener - a highlighting listenervoid removeHighlightingListener(IHighlightingListener listener)
listener - a highlighting listenervoid highlight(java.util.EventObject causingEvent)
causingEvent - the event that is requesting the highlighting to occurvoid clear(java.util.EventObject causingEvent)
setHighlightingInfo. The
provider notifies the listenerscausingEvent - the event that is requesting the highlighting to stoporg.eclipse.swt.graphics.Point getRightAnchor(boolean displayRelative)
displayRelative - a boolean flag to indicate if the returned point needs to be
relative to the control's display
(org.eclipse.swt.widgets.Display)org.eclipse.swt.graphics.Point getLeftAnchor(boolean displayRelative)
displayRelative - a boolean flag to indicate if the returned point needs to be
relative to the control's display
(org.eclipse.swt.widgets.Display)