Changeset 6270 in josm


Ignore:
Timestamp:
2013-09-30T02:09:13+02:00 (11 years ago)
Author:
Don-vip
Message:

fix #9128 - right click in layer dialog showed menu for the last selected one

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/LayerListDialog.java

    r6086 r6270  
    449449        }
    450450
     451        /**
     452         * Constructs a new {@code ShowHideLayerAction}.
     453         */
    451454        public ShowHideLayerAction() {
    452455            this(true);
     
    640643        }
    641644
     645        /**
     646         * Constructs a new {@code ActivateLayerAction}.
     647         */
    642648        public ActivateLayerAction() {
    643649            putValue(NAME, tr("Activate"));
     
    744750        }
    745751
     752        /**
     753         * Constructs a new {@code MergeAction}.
     754         */
    746755        public MergeAction() {
    747756            putValue(NAME, tr("Merge"));
     
    811820        }
    812821
     822        /**
     823         * Constructs a new {@code DuplicateAction}.
     824         */
    813825        public DuplicateAction() {
    814826            putValue(NAME, tr("Duplicate"));
     
    10211033
    10221034    class PopupMenuHandler extends PopupMenuLauncher {
    1023         @Override public void launch(MouseEvent evt) {
     1035        @Override public void showMenu(MouseEvent evt) {
    10241036            Layer layer = getModel().getLayer(layerList.getSelectedRow());
    10251037            menu = new LayerListPopup(getModel().getSelectedLayers(), layer);
    1026             super.launch(evt);
     1038            super.showMenu(evt);
    10271039        }
    10281040    }
Note: See TracChangeset for help on using the changeset viewer.