1 19 20 package org.netbeans.modules.html.palette; 21 22 import java.io.IOException ; 23 import org.openide.ErrorManager; 24 import org.openide.util.HelpCtx; 25 import org.openide.util.NbBundle; 26 import org.openide.util.actions.CallableSystemAction; 27 28 32 public class HTMLPaletteCustomizerAction extends CallableSystemAction { 33 34 private static String name; 35 36 public HTMLPaletteCustomizerAction () { 37 putValue("noIconInMenu", Boolean.TRUE); } 39 40 protected boolean asynchronous() { 41 return false; 42 } 43 44 48 public String getName() { 49 if (name == null) 50 name = NbBundle.getBundle(HTMLPaletteCustomizerAction.class).getString("ACT_OpenHTMLCustomizer"); 52 return name; 53 } 54 55 58 public HelpCtx getHelpCtx() { 59 return null; 60 } 61 62 65 public void performAction() { 66 try { 67 HTMLPaletteFactory.getPalette().showCustomizer(); 68 } 69 catch (IOException ioe) { 70 ErrorManager.getDefault().notify(ErrorManager.EXCEPTION, ioe); 71 } 72 } 73 74 } 75 | Popular Tags |