ImageResource iconStyle = iconProvider.getIcon(model);
if (iconStyle != null) {
return iconStyle;
}
}
TreeStyle ts = getStyle();
if (!isLeaf(model)) {
if (isExpanded(model)) {
style = ts.getNodeOpenIcon() != null ? ts.getNodeOpenIcon() : treeAppearance.openNodeIcon();
} else {
style = ts.getNodeCloseIcon() != null ? ts.getNodeCloseIcon() : treeAppearance.closeNodeIcon();
}
} else {
style = ts.getLeafIcon();
}
return style;
}