01: package com.xoetrope.editor.netbeans.actions;
02:
03: import org.openide.util.HelpCtx;
04: import org.openide.util.actions.CallableSystemAction;
05: import net.xoetrope.editor.project.XEditorProjectManager;
06: import com.xoetrope.editor.lm.XModuleRegistrationDialog;
07: import com.xoetrope.editor.lm.XuiProLicenseManager;
08: import net.xoetrope.xui.helper.XuiUtilities;
09:
10: /**
11: * Show the TestPilot dialog
12: * <p> Copyright (c) Xoetrope Ltd., 2001-2006, This software is licensed under
13: * the GNU Public License (GPL), please see license.txt for more details. If
14: * you make commercial use of this software you must purchase a commercial
15: * license from Xoetrope.</p>
16: * <p> $Revision: 1.3 $</p>
17: */
18: public class ShowModuleRegistrationAction extends CallableSystemAction {
19: public ShowModuleRegistrationAction() {
20: super ();
21: }
22:
23: public void performAction() {
24: XModuleRegistrationDialog mrd = new XModuleRegistrationDialog(
25: XEditorProjectManager.getLicenseManager());
26: XuiUtilities.centerOnScreen(mrd);
27: mrd.show();
28: }
29:
30: public String getName() {
31: return "XUI Pro Module Registration...";//NbBundle.getMessage( ShowServiceManagerAction.class, "LBL_ShowServiceManagerAction" );
32: }
33:
34: protected String iconResource() {
35: return "com/xoetrope/editor/netbeans/actions/ShowModuleRegistrationActionIcon.gif";
36: }
37:
38: public HelpCtx getHelpCtx() {
39: return HelpCtx.DEFAULT_HELP;
40: // If you will provide context help then use:
41: // return new HelpCtx(ShowLanguageEditorAction.class);
42: }
43:
44: protected boolean asynchronous() {
45: // performAction() should run in event thread
46: return false;
47: }
48:
49: /** Perform extra initialization of this action's singleton.
50: * PLEASE do not use constructors for this purpose!
51: * protected void initialize() {
52: * super.initialize();
53: * putProperty(Action.SHORT_DESCRIPTION, NbBundle.getMessage(ShowLanguageEditorAction.class, "HINT_Action"));
54: * }
55: */
56: public boolean isEnabled() {
57: return true;
58: }
59: }
|