representativeAnchor.setIcon(toolWindow.getIcon());
representativeAnchor.setText(toolRepresentativeAnchorText);
break;
case LEFT:
TextIcon textIcon = new TextIcon(((TextIcon) ((AggregateIcon) representativeAnchor.getIcon()).getLeftIcon()).getComponent(), toolRepresentativeAnchorText, TextIcon.ROTATE_LEFT);
AggregateIcon compositeIcon = new AggregateIcon(textIcon, toolWindow.getIcon(), SwingConstants.VERTICAL);
representativeAnchor.setText(null);
representativeAnchor.setIcon(compositeIcon);
break;
case RIGHT:
textIcon = new TextIcon(((TextIcon) ((AggregateIcon) representativeAnchor.getIcon()).getRightIcon()).getComponent(), toolRepresentativeAnchorText, TextIcon.ROTATE_RIGHT);
compositeIcon = new AggregateIcon(toolWindow.getIcon(), textIcon, SwingConstants.VERTICAL);
representativeAnchor.setText(null);
representativeAnchor.setIcon(compositeIcon);
break;
}
}