1 package com.quantum.view.subset;
3 import com.quantum.view.bookmark.TreeNode;
5 import org.eclipse.jface.viewers.ILabelProvider;
6 import org.eclipse.jface.viewers.ILabelProviderListener;
7 import org.eclipse.swt.graphics.Image;
12 * Implements the ILabelProvider for the Bookmarks.
14 public class SubsetLabelProvider implements ILabelProvider {
16 * @see org.eclipse.jface.viewers.ILabelProvider#getImage(Object)
18 public Image getImage(Object element) {
19 if (element instanceof TreeNode) {
20 return ((TreeNode) element).getImage();
27 * @see org.eclipse.jface.viewers.ILabelProvider#getText(Object)
29 public String getText(Object element) {
30 if (element instanceof TreeNode) {
31 return ((TreeNode) element).getLabelName();
33 return element.toString();
38 * @see org.eclipse.jface.viewers.IBaseLabelProvider#addListener(ILabelProviderListener)
40 public void addListener(ILabelProviderListener listener) {
44 * @see org.eclipse.jface.viewers.IBaseLabelProvider#dispose()
46 public void dispose() {
50 * @see org.eclipse.jface.viewers.IBaseLabelProvider#isLabelProperty(Object, String)
52 public boolean isLabelProperty(Object element, String property) {
57 * @see org.eclipse.jface.viewers.IBaseLabelProvider#removeListener(ILabelProviderListener)
59 public void removeListener(ILabelProviderListener listener) {