1 | public class CloseAction extends AbstractColumbaAction {↵ | | 1 | public class ShowContextSpecificHelpAction extends AbstractColumbaAction {↵
|
2 | public Close↵ | | 2 | protected ActionListener target;↵
|
|
3 | Action(IFrameMediator frameMediator) {↵ | | 3 | public ShowContextSpecificHelpAction(IFrameMediator frameMediator) {↵
|
4 | super(frameMediator, GlobalResourceLoader↵ | | 4 | super(frameMediator, GlobalResourceLoader↵
|
5 | .getString(null, null, "close"));↵ | | 5 | .getString(null, null,↵
|
|
6 | // tooltip text↵ | | |
|
7 | ↵ | | |
|
| | | 6 | "menu_help_context"));↵
|
|
| | | 7 | ↵
|
8 | putValue(SHORT_DESCRIPTION, GlobalResourceLoader.getString(null, null,↵ | | 8 | putValue(SHORT_DESCRIPTION, GlobalResourceLoader.getString(null, null,↵
|
9 | "close").replaceAll("&", ""));↵ | | |
|
|
10 | // short cut key↵ | | |
|
11 | putValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_W,↵ | | |
|
12 | Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()));↵ | | |
|
13 | }↵ | | |
|
|
14 | /**↵ | | |
|
15 | * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)↵ | | |
|
16 | */↵ | | |
|
17 | ↵ | | 9 | "menu_help_context_tooltip"));↵
|
|
| | | 10 | setShowToolBarText(false);↵
|
|
| | | 11 | target = new CSH.DisplayHelpAfterTracking(HelpManager.getInstance()↵
|
| | | 12 | .getHelpBroker());↵
|
| | | 13 | }↵
|
|
18 | public void actionPerformed(ActionEvent evt) {↵ | | 14 | public void actionPerformed(ActionEvent e) {↵
|
19 | frameMediator.fireClosed(); | | 15 | target.actionPerformed(e);↵
|
| | | 16 |
|