01: package net.refractions.udig.style.sld.editor.internal;
02:
03: import org.eclipse.jface.viewers.LabelProvider;
04: import org.eclipse.swt.graphics.Image;
05:
06: /**
07: * Provides labels for <code>IEditorNode</code> objects.
08: */
09: public class EditorPageLabelProvider extends LabelProvider {
10:
11: @Override
12: public String getText(Object element) {
13: return ((IEditorNode) element).getLabelText();
14: }
15:
16: @Override
17: public Image getImage(Object element) {
18: return ((IEditorNode) element).getLabelImage();
19: }
20: }
|