public final class HideAction extends CallableSystemAction {
public void performAction() {
EditorTopComponent editor = EditorTopComponent.getActive();
if (editor != null) {
editor.hideNodes();
}
}
public HideAction() {
putValue(Action.SHORT_DESCRIPTION, "Hide selected nodes");