1 19 package org.netbeans.modules.navigator; 20 21 import org.openide.util.HelpCtx; 22 import org.openide.util.NbBundle; 23 import org.openide.util.actions.CallableSystemAction; 24 25 30 public class ShowNavigatorAction extends CallableSystemAction { 31 32 public void performAction () { 33 NavigatorTC navTC = NavigatorTC.getInstance(); 34 navTC.open(); 35 navTC.requestActive(); 36 } 37 38 public String getName () { 39 return NbBundle.getMessage(ShowNavigatorAction.class, "LBL_Action"); } 41 42 protected String iconResource () { 43 return "org/netbeans/modules/navigator/resources/navigator.png"; } 45 46 public HelpCtx getHelpCtx () { 47 return HelpCtx.DEFAULT_HELP; 48 } 49 50 public boolean asynchronous () { 51 return false; 52 } 53 } 54 55 | Popular Tags |