use of com.intellij.ide.util.treeView.smartTree.ActionPresentation in project intellij-community by JetBrains.
the class TreeActionWrapper method update.
@Override
public void update(AnActionEvent e) {
super.update(e);
Presentation presentation = e.getPresentation();
ActionPresentation actionPresentation = myAction.getPresentation();
if (presentation.getClientProperty(MenuItemPresentationFactory.HIDE_ICON) == null) {
presentation.setIcon(actionPresentation.getIcon());
}
presentation.setText(actionPresentation.getText());
}
Aggregations