Package org.eclipse.jface.viewers
Class DecorationContext
- java.lang.Object
-
- org.eclipse.jface.viewers.DecorationContext
-
- All Implemented Interfaces:
IDecorationContext
public class DecorationContext extends Object implements IDecorationContext
A concrete implementation of theIDecorationContextinterface, suitable for instantiating.This class is not intended to be subclassed.
- Since:
- 3.2
-
-
Field Summary
Fields Modifier and Type Field Description static IDecorationContextDEFAULT_CONTEXTConstant that defines a default decoration context that has no context ids associated with it.
-
Constructor Summary
Constructors Constructor Description DecorationContext()Create a decoration context.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]getProperties()Return the properties that exist in this context (i.e. the set of properties that have values associated with them.ObjectgetProperty(String property)Get the value of the given property ornullif the property does not exist in this context.voidputProperty(String property, Object value)Set the given property to the given value.
-
-
-
Field Detail
-
DEFAULT_CONTEXT
public static final IDecorationContext DEFAULT_CONTEXT
Constant that defines a default decoration context that has no context ids associated with it.
-
-
Method Detail
-
getProperty
public Object getProperty(String property)
Description copied from interface:IDecorationContextGet the value of the given property ornullif the property does not exist in this context.- Specified by:
getPropertyin interfaceIDecorationContext- Parameters:
property- the property- Returns:
- the value of the given property or
null
-
getProperties
public String[] getProperties()
Description copied from interface:IDecorationContextReturn the properties that exist in this context (i.e. the set of properties that have values associated with them.- Specified by:
getPropertiesin interfaceIDecorationContext- Returns:
- the properties that exist in this context
-
putProperty
public void putProperty(String property, Object value)
Set the given property to the given value. Setting the value of a property tonullremoves the property from the context.- Parameters:
property- the propertyvalue- the value of the property ornullif the property is to be removed.
-
-