Search in sources :

Example 1 with ActionPresentation

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());
}
Also used : ActionPresentation(com.intellij.ide.util.treeView.smartTree.ActionPresentation) Presentation(com.intellij.openapi.actionSystem.Presentation) ActionPresentation(com.intellij.ide.util.treeView.smartTree.ActionPresentation)

Aggregations

ActionPresentation (com.intellij.ide.util.treeView.smartTree.ActionPresentation)1 Presentation (com.intellij.openapi.actionSystem.Presentation)1