Last change
on this file since 29769 was 28581, checked in by donvip, 12 years ago |
[josm_commandline] Replace deleted blankmenu icon by commandline icon
|
File size:
851 bytes
|
Line | |
---|
1 | /*
|
---|
2 | * CommandLineAction.java
|
---|
3 | *
|
---|
4 | * Copyright 2010 Hind <foxhind@gmail.com>
|
---|
5 | *
|
---|
6 | */
|
---|
7 |
|
---|
8 | package CommandLine;
|
---|
9 |
|
---|
10 | import static org.openstreetmap.josm.tools.I18n.tr;
|
---|
11 |
|
---|
12 | import java.awt.event.ActionEvent;
|
---|
13 | import java.awt.event.KeyEvent;
|
---|
14 |
|
---|
15 | import org.openstreetmap.josm.actions.JosmAction;
|
---|
16 | import org.openstreetmap.josm.tools.Shortcut;
|
---|
17 |
|
---|
18 | public class CommandLineAction extends JosmAction {
|
---|
19 | private final CommandLine parentPlugin;
|
---|
20 |
|
---|
21 | public CommandLineAction(CommandLine parentPlugin) {
|
---|
22 | super(tr("Command line"), "commandline", tr("Set input focus to the command line."),
|
---|
23 | Shortcut.registerShortcut("tool:commandline", tr("Tool: {0}", tr("Command line")), KeyEvent.VK_ENTER, Shortcut.DIRECT), true, "commandline", true);
|
---|
24 | this.parentPlugin = parentPlugin;
|
---|
25 | }
|
---|
26 |
|
---|
27 | @Override
|
---|
28 | public void actionPerformed(ActionEvent e) {
|
---|
29 | parentPlugin.activate();
|
---|
30 | }
|
---|
31 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.