1 19 20 package org.netbeans.core.actions; 21 22 import org.openide.util.HelpCtx; 23 import org.openide.util.NbBundle; 24 import org.openide.util.actions.CallableSystemAction; 25 import org.openide.util.actions.Presenter; 26 27 import org.netbeans.core.startup.Splash; 28 29 33 public class AboutAction extends CallableSystemAction { 34 35 public AboutAction () { 36 putValue("noIconInMenu", Boolean.TRUE); } 38 39 public void performAction () { 40 Splash.showAboutDialog( 41 org.openide.windows.WindowManager.getDefault ().getMainWindow (), 42 new org.netbeans.core.ui.ProductInformationPanel () 43 ); 44 } 45 46 protected boolean asynchronous() { 47 return false; 48 } 49 50 public HelpCtx getHelpCtx() { 51 return new HelpCtx(AboutAction.class); 52 } 53 54 public String getName() { 55 return NbBundle.getMessage(AboutAction.class, "About"); 56 } 57 58 } 59 | Popular Tags |