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 33 public final class ExpandAllUserTasksAction extends CallableSystemAction { 34 private static final long serialVersionUID = 1; 35 36 39 public void performAction() { 40 UserTaskView view = UserTaskViewRegistry.getInstance().getCurrent(); 41 if (view != null) { 42 view.getTreeTable().expandAll(); 43 } 44 } 45 46 public String getName() { 47 return NbBundle.getMessage(ExpandAllUserTasksAction.class, 48 "LBL_ExpandAll"); } 50 51 public HelpCtx getHelpCtx() { 52 return HelpCtx.DEFAULT_HELP; 53 } 56 57 protected boolean asynchronous() { 58 return false; 59 } 60 } 61 | Popular Tags |