boolean hasFocus)
{
DefaultMutableTreeNode node = (DefaultMutableTreeNode) value;
if (node.getUserObject() instanceof AbstractTreeNode)
{
AbstractTreeNode userNode = (AbstractTreeNode) node.getUserObject();
Object userValue = userNode.getValue();
if (userValue instanceof XSModelTreeElement)
{
XSModelTreeElement treeElement = (XSModelTreeElement) userValue;
if (treeElement.hasXStructureSupport())
{
String tagName = treeElement.getTagName();
String targetLabel = treeElement.getTargetLabel();
String targetTooltip = treeElement.getTargetTooltip();
setIcon(expanded ? userNode.getOpenIcon() : userNode.getClosedIcon());
setToolTipText(targetTooltip);
append(tagName, SimpleTextAttributes.GRAYED_ATTRIBUTES);
if (targetLabel != null)