1 19 20 package org.netbeans.modules.tasklist.usertasks.actions; 21 22 import org.netbeans.modules.tasklist.usertasks.UserTaskView; 23 import org.netbeans.modules.tasklist.usertasks.UserTaskViewRegistry; 24 import org.openide.util.HelpCtx; 25 import org.openide.util.NbBundle; 26 import org.openide.util.actions.CallableSystemAction; 27 28 31 public final class CollapseAllAction extends CallableSystemAction { 32 33 private static final long serialVersionUID = 1; 34 35 38 public void performAction() { 39 UserTaskView view = UserTaskViewRegistry.getInstance().getCurrent(); 40 if (view != null) { 41 view.getTreeTable().collapseAll(); 42 } 43 } 44 45 public String getName() { 46 return NbBundle.getMessage(ExpandAllUserTasksAction.class, 47 "LBL_CollapseAll"); } 49 50 public HelpCtx getHelpCtx() { 51 return HelpCtx.DEFAULT_HELP; 52 } 55 56 @Override 57 protected boolean asynchronous() { 58 return false; 59 } 60 } 61 | Popular Tags |