Ignore:
Timestamp:
2012-08-21T09:28:05+02:00 (12 years ago)
Author:
donvip
Message:

[josm_commandline] Replace deleted blankmenu icon by commandline icon

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/CommandLine/src/CommandLine/CommandLineAction.java

    r27906 r28581  
    11/*
    22 *      CommandLineAction.java
    3  *      
     3 *
    44 *      Copyright 2010 Hind <foxhind@gmail.com>
    5  *      
     5 *
    66 */
    7  
     7
    88package CommandLine;
    99
     
    1212import java.awt.event.ActionEvent;
    1313import 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;
    2014
    21 import javax.swing.JOptionPane;
    22 
    23 import org.openstreetmap.josm.Main;
    2415import 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;
    3616import org.openstreetmap.josm.tools.Shortcut;
    3717
    3818public class CommandLineAction extends JosmAction {
    39         private CommandLine parentPlugin;
    40        
     19        private final CommandLine parentPlugin;
     20
    4121        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);
    4424                this.parentPlugin = parentPlugin;
    4525        }
    4626
    47     public void actionPerformed(ActionEvent e) {
     27        @Override
     28        public void actionPerformed(ActionEvent e) {
    4829                parentPlugin.activate();
    49     }
     30        }
    5031}
Note: See TracChangeset for help on using the changeset viewer.