Mercurial > projects > dwt-addons
comparison dwtx/jface/viewers/IDecorationContext.d @ 10:b6c35faf97c8
Viewers
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 31 Mar 2008 00:47:19 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
9:6c14e54dfc11 | 10:b6c35faf97c8 |
---|---|
1 /******************************************************************************* | |
2 * Copyright (c) 2006 IBM Corporation and others. | |
3 * All rights reserved. This program and the accompanying materials | |
4 * are made available under the terms of the Eclipse Public License v1.0 | |
5 * which accompanies this distribution, and is available at | |
6 * http://www.eclipse.org/legal/epl-v10.html | |
7 * | |
8 * Contributors: | |
9 * IBM Corporation - initial API and implementation | |
10 * Port to the D programming language: | |
11 * Frank Benoit <benoit@tionex.de> | |
12 *******************************************************************************/ | |
13 module dwtx.jface.viewers.IDecorationContext; | |
14 | |
15 import dwt.dwthelper.utils; | |
16 | |
17 | |
18 /** | |
19 * A decoration context provides additional information to | |
20 * a label decorator. | |
21 * <p> | |
22 * This interface is not intended to be implemented by clients | |
23 * | |
24 * @see LabelDecorator | |
25 * | |
26 * @since 3.2 | |
27 */ | |
28 public interface IDecorationContext { | |
29 | |
30 /** | |
31 * Get the value of the given property or <code>null</code> | |
32 * if the property does not exist in this context. | |
33 * @param property the property | |
34 * @return the value of the given property or <code>null</code> | |
35 */ | |
36 Object getProperty(String property); | |
37 | |
38 /** | |
39 * Return the properties that exist in this context | |
40 * (i.e. the set of properties that have values associated | |
41 * with them. | |
42 * @return the properties that exist in this context | |
43 */ | |
44 String[] getProperties(); | |
45 | |
46 } |