1 19 20 package org.netbeans.modules.autoupdate; 21 22 import org.openide.util.HelpCtx; 23 import org.openide.util.actions.*; 24 import org.openide.util.NbBundle; 25 26 30 class UpdateAction extends CallableSystemAction { 31 32 public UpdateAction() { 33 putValue("noIconInMenu", Boolean.TRUE); } 35 36 38 static final long serialVersionUID = 1544145343804094269L; 39 40 44 public String getName() { 45 return NbBundle.getBundle (UpdateAction.class).getString ("CTL_Update"); } 47 48 51 public HelpCtx getHelpCtx() { 52 return new HelpCtx (UpdateAction.class); 53 } 54 55 58 protected String iconResource () { 59 return "org/netbeans/modules/autoupdate/resources/updateAction.gif"; } 61 62 65 public boolean isEnabled() { 66 return true; 67 } 68 69 public boolean asynchronous() { 70 return false; 71 } 72 73 public void performAction () { 74 Wizard.go(); 75 } 77 78 79 public static void main( String args[] ) { 80 81 Wizard.go(); 82 } 83 84 } 85 | Popular Tags |