01: /*
02: * Copyright 2001-2007 Geert Bevin <gbevin[remove] at uwyn dot com>
03: * Distributed under the terms of either:
04: * - the common development and distribution license (CDDL), v1.0; or
05: * - the GNU Lesser General Public License, v2.1 or later
06: * $Id: OpenBeanshellAction.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.gui.ui.actions;
09:
10: import java.awt.event.InputEvent;
11: import java.awt.event.KeyEvent;
12: import javax.swing.*;
13:
14: import com.uwyn.rife.gui.ui.commands.OpenBeanshell;
15: import com.uwyn.rife.swing.JAction;
16: import com.uwyn.rife.tools.Localization;
17:
18: public class OpenBeanshellAction extends JAction {
19: public OpenBeanshellAction() {
20: super (
21: new OpenBeanshell(),
22: Localization
23: .getString("rife.menu.tools.beanshell.opendesktop"),
24: Localization
25: .getChar("rife.menu.tools.beanshell.opendesktop.mnemonic"),
26: KeyStroke.getKeyStroke(KeyEvent.VK_B,
27: InputEvent.SHIFT_MASK | InputEvent.CTRL_MASK,
28: false));
29: }
30: }
|