1 19 20 package org.netbeans.modules.tasklist.bugs; 21 22 import org.netbeans.modules.tasklist.core.TaskListView; 23 24 import org.openide.util.HelpCtx; 25 import org.openide.util.NbBundle; 26 import org.openide.util.actions.CallableSystemAction; 27 28 29 31 public class ViewBugListAction extends CallableSystemAction { 32 33 private static final long serialVersionUID = 1; 34 35 public void performAction() { 36 show(); 37 } 38 39 protected boolean asynchronous() { 40 return false; 41 } 42 43 static void show() { 44 TaskListView view = 45 TaskListView.getTaskListView(BugsView.CATEGORY); if (view != null) { 47 view.showInMode(); 48 return; 49 } 50 51 } 62 63 public String getName() { 64 return NbBundle.getMessage(ViewBugListAction.class, "ViewBugList"); } 66 67 protected String iconResource() { 68 return "org/netbeans/modules/tasklist/bugs/bugsView.gif"; } 70 71 public HelpCtx getHelpCtx() { 72 return HelpCtx.DEFAULT_HELP; 73 } 76 } 77 | Popular Tags |