@Override public String getCPListElementText(BPListElement cpentry) { String result = LabelProviderUtil.getVariableName(cpentry.getPath(), cpentry.getEntryKind()); if (result == null) { result = super.getCPListElementText(cpentry); } if (PharUIUtil.isInvalidPharBuildEntry(cpentry)) { result = result + fInvalidLabel; } return result; }
@Override public Image getImage(Object element) { if (element instanceof BPListElement) { BPListElement cpentry = (BPListElement) element; ImageDescriptor imageDescriptor = getCPListElementBaseImage(cpentry); if (imageDescriptor != null) { if (PharUIUtil.isInvalidPharBuildEntry(cpentry)) { imageDescriptor = new ScriptElementImageDescriptor( imageDescriptor, ScriptElementImageDescriptor.ERROR, ScriptElementImageProvider.SMALL_SIZE); } return fRegistry.get(imageDescriptor); } } return super.getImage(element); }