01: /**
02: *
03: */package newprocess.diagram.cust.annotations.dialogs;
04:
05: import org.eclipse.jface.viewers.ITableLabelProvider;
06: import org.eclipse.jface.viewers.LabelProvider;
07: import org.eclipse.swt.graphics.Image;
08:
09: /**
10: * @author sh
11: *
12: */
13: public class AnnotationLabelProvider extends LabelProvider implements
14: ITableLabelProvider {
15:
16: public Image getColumnImage(Object element, int columnIndex) {
17: return null;
18: }
19:
20: /* (non-Javadoc)
21: * @see org.eclipse.jface.viewers.ITableLabelProvider#getColumnText(java.lang.Object, int)
22: */
23: public String getColumnText(Object element, int columnIndex) {
24: String result = "";
25: Annotation annotation = (Annotation) element;
26: switch (columnIndex) {
27: case 0:
28: result = annotation.getUri(); // URL_COLUMN
29: break;
30: default:
31: break;
32: }
33: return result;
34: }
35: }
|