树TreeViewer

http://www.ibm.com/developerworks/cn/linux/opensource/os-ecgui1/

ReportTreeLabelProvider.java:
public Image getImage(Object element) {

if (!(element instanceof StatisticTreeElement)) {
return null;
}

StatisticTreeElement statistic = (StatisticTreeElement) element;

/*String imageKey = (isLeafItem(statistic)) ? ISharedImages.IMG_OBJ_ELEMENT
: ISharedImages.IMG_OBJ_FOLDER;

return PlatformUI.getWorkbench().getSharedImages().getImage(
imageKey);*/
//设置树图标
return setTreeImage(statistic);

}

你可能感兴趣的:(java,linux,OS,IBM,OpenSource)