1 11 package org.eclipse.help.ui.internal.workingset; 12 13 import org.eclipse.help.internal.workingset.*; 14 import org.eclipse.jface.viewers.*; 15 import org.eclipse.swt.graphics.*; 16 17 public class HelpWorkingSetElementLabelProvider extends LabelProvider { 18 19 22 public HelpWorkingSetElementLabelProvider() { 23 super(); 24 } 25 26 29 public Image getImage(Object element) { 30 return null; 31 } 32 33 36 public String getText(Object element) { 37 if (element instanceof AdaptableToc) 38 return ((AdaptableToc) element).getLabel(); 39 else if (element instanceof AdaptableTopic) 40 return ((AdaptableTopic) element).getLabel(); 41 else 42 return null; 43 } 44 45 } 46 | Popular Tags |