01: /*
02: * HTMLPaletteCustomizerAction.java
03: *
04: * Created on October 27, 2005, 10:49 AM
05: *
06: * To change this template, choose Tools | Options and locate the template under
07: * the Source Creation and Management node. Right-click the template and choose
08: * Open. You can then make changes to the template in the Source Editor.
09: */
10:
11: package org.netbeans.modules.visualweb.designer.jsf.palette;
12:
13: import java.io.IOException;
14: import java.util.logging.Level;
15: import java.util.logging.Logger;
16: import org.openide.util.HelpCtx;
17: import org.openide.util.NbBundle;
18: import org.openide.util.actions.CallableSystemAction;
19:
20: /**
21: *
22: * @author lk155162
23: */
24: public class JSF1_2PaletteCustomizerAction extends CallableSystemAction {
25:
26: private static String name;
27:
28: public JSF1_2PaletteCustomizerAction() {
29: putValue("noIconInMenu", Boolean.TRUE); // NOI18N
30: }
31:
32: protected boolean asynchronous() {
33: return false;
34: }
35:
36: /** Human presentable name of the action. This should be
37: * presented as an item in a menu.
38: * @return the name of the action
39: */
40: public String getName() {
41: if (name == null)
42: name = NbBundle.getBundle(
43: JSF1_2PaletteCustomizerAction.class).getString(
44: "ACT_OpenJSF1_2Customizer"); // NOI18N
45:
46: return name;
47: }
48:
49: /** Help context where to find more about the action.
50: * @return the help context for this action
51: */
52: public HelpCtx getHelpCtx() {
53: return null;
54: }
55:
56: /** This method is called by one of the "invokers" as a result of
57: * some user's action that should lead to actual "performing" of the action.
58: */
59: public void performAction() {
60: PaletteControllerFactory.getJsfPaletteController_5()
61: .showCustomizer();
62:
63: }
64:
65: }
|