public class DefaultContentDescriptor extends java.lang.Object implements IContentDescriptor
IContentDescriptor
IContentDescriptor
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()
IContentDescriptor
getContent
in interface IContentDescriptor
IContentDescriptor.getContent()
public final HighlightStyle getHighlightStyle()
IContentDescriptor
getHighlightStyle
in interface IContentDescriptor
IContentDescriptor.getHighlightStyle()