1 11 package org.eclipse.ant.internal.ui.launchConfigurations; 12 13 import org.eclipse.ant.internal.ui.model.AntModelLabelProvider; 14 import org.eclipse.ant.internal.ui.model.AntTargetNode; 15 import org.eclipse.jface.viewers.ITableLabelProvider; 16 import org.eclipse.swt.graphics.Image; 17 18 21 public class TargetTableLabelProvider extends AntModelLabelProvider implements ITableLabelProvider { 22 23 26 public Image getColumnImage(Object element, int columnIndex) { 27 if (columnIndex == 0) { 28 return getImage(element); 29 } 30 return null; 31 } 32 33 36 public String getColumnText(Object element, int columnIndex) { 37 if (columnIndex == 0){ 38 return getText(element); 39 } 40 String desc= ((AntTargetNode)element).getTarget().getDescription(); 41 if (desc == null) { 42 return ""; } 44 return desc; 45 } 46 } 47 | Popular Tags |