Mercurial > projects > dwt-addons
comparison dwtx/jface/viewers/IDelayedLabelDecorator.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) 2004, 2007 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.IDelayedLabelDecorator; | |
14 | |
15 import dwtx.jface.viewers.ILabelDecorator; | |
16 | |
17 import dwt.dwthelper.utils; | |
18 | |
19 /** | |
20 * A delayed label decorator is a label decorator that may not have a | |
21 * decoration available immediately. This interface defines the methods for | |
22 * requesting the preparation of a decorator for an object and for querying | |
23 * if the decorator is ready. Interested parties should register an | |
24 * ILabelProviderListener with a delayed label decorator in order to be informed | |
25 * when the decoration is ready. | |
26 * @since 3.0 | |
27 */ | |
28 public interface IDelayedLabelDecorator : ILabelDecorator { | |
29 | |
30 /** | |
31 * Prepare the element for decoration. If it is already decorated and ready for update | |
32 * return true. If decoration is pending return false. | |
33 * @param element The element to be decorated | |
34 * @param originalText The starting text. | |
35 * @return bool <code>true</code> if the decoration is ready for this element | |
36 */ | |
37 | |
38 public bool prepareDecoration(Object element, String originalText); | |
39 | |
40 } |