Changeset 28581 in osm for applications/editors/josm/plugins
- Timestamp:
- 2012-08-21T09:28:05+02:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/CommandLine/src/CommandLine/CommandLineAction.java
r27906 r28581 1 1 /* 2 2 * CommandLineAction.java 3 * 3 * 4 4 * Copyright 2010 Hind <foxhind@gmail.com> 5 * 5 * 6 6 */ 7 7 8 8 package CommandLine; 9 9 … … 12 12 import java.awt.event.ActionEvent; 13 13 import java.awt.event.KeyEvent; 14 import java.awt.Cursor;15 import java.util.ArrayList;16 import java.util.Collection;17 import java.util.HashSet;18 import java.util.LinkedList;19 import java.util.List;20 14 21 import javax.swing.JOptionPane;22 23 import org.openstreetmap.josm.Main;24 15 import org.openstreetmap.josm.actions.JosmAction; 25 import org.openstreetmap.josm.command.AddCommand;26 import org.openstreetmap.josm.command.Command;27 import org.openstreetmap.josm.command.SequenceCommand;28 import org.openstreetmap.josm.data.coor.EastNorth;29 import org.openstreetmap.josm.data.osm.Node;30 import org.openstreetmap.josm.data.osm.OsmPrimitive;31 import org.openstreetmap.josm.data.osm.Relation;32 import org.openstreetmap.josm.data.osm.RelationMember;33 import org.openstreetmap.josm.data.osm.Way;34 import org.openstreetmap.josm.gui.MapFrame;35 import org.openstreetmap.josm.tools.Pair;36 16 import org.openstreetmap.josm.tools.Shortcut; 37 17 38 18 public class CommandLineAction extends JosmAction { 39 private CommandLine parentPlugin; 40 19 private final CommandLine parentPlugin; 20 41 21 public CommandLineAction(CommandLine parentPlugin) { 42 super(tr("Command line"), " blankmenu", tr("Set input focus to the command line."),43 Shortcut.registerShortcut("tool:commandline", tr("Tool: {0}", tr("Command line")), KeyEvent.VK_ENTER, Shortcut.DIRECT), true, "commandline", true); 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); 44 24 this.parentPlugin = parentPlugin; 45 25 } 46 26 47 public void actionPerformed(ActionEvent e) { 27 @Override 28 public void actionPerformed(ActionEvent e) { 48 29 parentPlugin.activate(); 49 30 } 50 31 }
Note:
See TracChangeset
for help on using the changeset viewer.