public String getText(Object obj) { if (obj instanceof IIndexEntry) return ((IIndexEntry) obj).getKeyword(); if (obj instanceof IHelpResource) return ((IHelpResource) obj).getLabel(); return super.getText(obj); }
public IndexEntry(IIndexEntry src) { super(NAME, src); setKeyword(src.getKeyword()); appendChildren(src.getChildren()); }
if (topics.length == 1) { final String href = topics[0].getHref(); final String label = entry.getKeyword(); return new IHelpResource() { public String getHref() {