1 19 20 package org.netbeans.modules.j2ee.sun.ide.avk.actions; 21 22 23 24 import org.openide.util.NbBundle; 25 import org.openide.util.actions.CallableSystemAction; 26 import org.openide.util.HelpCtx; 27 import org.openide.awt.HtmlBrowser.URLDisplayer; 28 import java.io.File ; 29 import java.net.URL ; 30 import org.netbeans.modules.j2ee.sun.ide.avk.AVKSupport; 31 32 36 public class ShowAVKHelpAction extends CallableSystemAction { 37 38 public ShowAVKHelpAction() { 39 putValue("noIconInMenu", Boolean.TRUE); } 41 42 public void performAction() { 43 try{ 44 String helpUrl = NbBundle.getMessage(ShowAVKHelpAction.class, "AVK_HELP_URL"); 46 URLDisplayer.getDefault().showURL(new URL (helpUrl)); 47 } 48 catch (Exception e){ 49 50 } 51 } 52 53 public String getName() { 54 return NbBundle.getMessage(ShowAVKHelpAction.class, "LBL_AVKHelpAction"); 55 } 56 57 61 public HelpCtx getHelpCtx() { 62 return HelpCtx.DEFAULT_HELP; 63 } 64 65 protected boolean asynchronous(){ 66 return false; 67 } 68 69 } 70 | Popular Tags |