1 11 package org.eclipse.ant.internal.ui.datatransfer; 12 13 import com.ibm.icu.text.MessageFormat; 14 15 import org.eclipse.ant.internal.ui.model.AntElementNode; 16 import org.eclipse.ant.internal.ui.model.AntModelLabelProvider; 17 18 21 public class JavacTableLabelProvider extends AntModelLabelProvider { 22 25 public String getText(Object element) { 26 AntElementNode parent= ((AntElementNode)element).getParentNode(); 27 if (parent == null) { 28 return ""; } 30 String targetName= super.getText(parent); 31 return MessageFormat.format(DataTransferMessages.JavacTableLabelProvider_0, new String [] {targetName}); 32 } 33 } 34 | Popular Tags |