Package org.eclipse.jface.viewers
Class DecorationContext
java.lang.Object
org.eclipse.jface.viewers.DecorationContext
- All Implemented Interfaces:
IDecorationContext
A concrete implementation of the
IDecorationContext
interface,
suitable for instantiating.
This class is not intended to be subclassed.
- Since:
- 3.2
-
Field Summary
Modifier and TypeFieldDescriptionstatic final IDecorationContext
Constant that defines a default decoration context that has no context ids associated with it. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionString[]
Return the properties that exist in this context (i.e. the set of properties that have values associated with them.getProperty
(String property) Get the value of the given property ornull
if the property does not exist in this context.void
putProperty
(String property, Object value) Set the given property to the given value.
-
Field Details
-
DEFAULT_CONTEXT
Constant that defines a default decoration context that has no context ids associated with it.
-
-
Constructor Details
-
DecorationContext
public DecorationContext()Create a decoration context.
-
-
Method Details
-
getProperty
Description copied from interface:IDecorationContext
Get the value of the given property ornull
if the property does not exist in this context.- Specified by:
getProperty
in interfaceIDecorationContext
- Parameters:
property
- the property- Returns:
- the value of the given property or
null
-
getProperties
Description copied from interface:IDecorationContext
Return the properties that exist in this context (i.e. the set of properties that have values associated with them.- Specified by:
getProperties
in interfaceIDecorationContext
- Returns:
- the properties that exist in this context
-
putProperty
Set the given property to the given value. Setting the value of a property tonull
removes the property from the context.- Parameters:
property
- the propertyvalue
- the value of the property ornull
if the property is to be removed.
-