public class DefaultContentDescriptor extends java.lang.Object implements IContentDescriptor
IContentDescriptorIContentDescriptor| Constructor and Description |
|---|
DefaultContentDescriptor(java.util.List content,
HighlightStyle style)
Constructs a new DefaultContentDescriptor
|
| Modifier and Type | Method and Description |
|---|---|
static DefaultContentDescriptor |
createExistingDescriptor(java.lang.Object content)
Create a DefaultContentDescriptor with HighlightStyle.EXISTING and
incoming content
|
static DefaultContentDescriptor |
createMissingDescriptor(java.lang.Object content)
Create a DefaultContentDescriptor with HighlightStyle.MISSING and
incoming content
|
static DefaultContentDescriptor |
createUnderDescriptor(java.lang.Object content)
Create a DefaultContentDescriptor with HighlightStyle.UNDER and incoming
content
|
java.util.List |
getContent()
Returns the content that needs to be highlighted as the current selection
in the viewer
|
HighlightStyle |
getHighlightStyle()
Returns the highlighting style
|
public DefaultContentDescriptor(java.util.List content,
HighlightStyle style)
content - the content as a liststyle - the highlighting stylepublic static DefaultContentDescriptor createExistingDescriptor(java.lang.Object content)
content - an element to be highlighed.public static DefaultContentDescriptor createMissingDescriptor(java.lang.Object content)
content - an element to be highlighed.public static DefaultContentDescriptor createUnderDescriptor(java.lang.Object content)
content - an element to be highlighed.public final java.util.List getContent()
IContentDescriptorgetContent in interface IContentDescriptorIContentDescriptor.getContent()public final HighlightStyle getHighlightStyle()
IContentDescriptorgetHighlightStyle in interface IContentDescriptorIContentDescriptor.getHighlightStyle()