1 10 11 package org.netbeans.modules.web.core.palette; 12 13 import java.io.IOException ; 14 import org.openide.ErrorManager; 15 import org.openide.util.HelpCtx; 16 import org.openide.util.NbBundle; 17 import org.openide.util.actions.CallableSystemAction; 18 19 23 public class JSPPaletteCustomizerAction extends CallableSystemAction { 24 25 private static String name; 26 27 public JSPPaletteCustomizerAction () { 28 putValue("noIconInMenu", Boolean.TRUE); } 30 31 protected boolean asynchronous() { 32 return false; 33 } 34 35 39 public String getName() { 40 if (name == null) 41 name = NbBundle.getBundle(JSPPaletteCustomizerAction.class).getString("ACT_OpenJSPCustomizer"); 43 return name; 44 } 45 46 49 public HelpCtx getHelpCtx() { 50 return null; 51 } 52 53 56 public void performAction() { 57 try { 58 JSPPaletteFactory.getPalette().showCustomizer(); 59 } 60 catch (IOException ioe) { 61 ErrorManager.getDefault().notify(ErrorManager.EXCEPTION, ioe); 62 } 63 } 64 65 } 66 | Popular Tags |