comparison dwtx/jface/viewers/LabelProvider.d @ 54:a6683645b0d7

Fix ignored labelprovider for TreeViewer (See WrapperViewerLabelProvider.d), removed the debugging prints
author Frank Benoit <benoit@tionex.de>
date Sat, 12 Apr 2008 17:53:06 +0200
parents 28f6c339768e
children
comparison
equal deleted inserted replaced
53:28f6c339768e 54:a6683645b0d7
16 import dwtx.jface.viewers.ILabelProvider; 16 import dwtx.jface.viewers.ILabelProvider;
17 17
18 import dwt.graphics.Image; 18 import dwt.graphics.Image;
19 19
20 import dwt.dwthelper.utils; 20 import dwt.dwthelper.utils;
21 import tango.util.log.Trace;
22 21
23 /** 22 /**
24 * A label provider implementation which, by default, uses an element's 23 * A label provider implementation which, by default, uses an element's
25 * <code>toString</code> value for its text and <code>null</code> for its 24 * <code>toString</code> value for its text and <code>null</code> for its
26 * image. 25 * image.
57 * The <code>LabelProvider</code> implementation of this 56 * The <code>LabelProvider</code> implementation of this
58 * <code>ILabelProvider</code> method returns the element's 57 * <code>ILabelProvider</code> method returns the element's
59 * <code>toString</code> string. Subclasses may override. 58 * <code>toString</code> string. Subclasses may override.
60 */ 59 */
61 public String getText(Object element) { 60 public String getText(Object element) {
62 // Trace.formatln( "{} {}: getText", __FILE__, __LINE__ );
63 return element is null ? "" : element.toString();//$NON-NLS-1$ 61 return element is null ? "" : element.toString();//$NON-NLS-1$
64 } 62 }
65 } 63 }