01: /*******************************************************************************
02: * Copyright (c) 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.jface.viewers;
11:
12: /**
13: * A decoration context provides additional information to
14: * a label decorator.
15: * <p>
16: * This interface is not intended to be implemented by clients
17: *
18: * @see LabelDecorator
19: *
20: * @since 3.2
21: */
22: public interface IDecorationContext {
23:
24: /**
25: * Get the value of the given property or <code>null</code>
26: * if the property does not exist in this context.
27: * @param property the property
28: * @return the value of the given property or <code>null</code>
29: */
30: Object getProperty(String property);
31:
32: /**
33: * Return the properties that exist in this context
34: * (i.e. the set of properties that have values associated
35: * with them.
36: * @return the properties that exist in this context
37: */
38: String[] getProperties();
39:
40: }
|