1 package com.quantum.view.widget;
3 import com.quantum.model.Displayable;
5 import org.eclipse.jface.viewers.LabelProvider;
6 import org.eclipse.swt.graphics.Image;
12 public class SimpleLabelProvider extends LabelProvider {
14 private final Image image;
16 public SimpleLabelProvider() {
19 public SimpleLabelProvider(Image image) {
22 public Image getImage(Object element) {
25 public String getText(Object element) {
26 if (element instanceof Displayable) {
27 return ((Displayable) element).getDisplayName();
29 return super.getText(element);