Ignore:
Timestamp:
2013-05-13T03:10:05+02:00 (11 years ago)
Author:
Don-vip
Message:
  • Improve PopupMenuLauncher to automatically select JTable/JList/JTree line under cursor
  • Simplify all popup menus with this new feature
  • Remove custom popup menus in BoundingBoxSelection and BoundingBoxSelection to use default text field popup menus recently introduced
  • Fix EDT violations in changeset window
  • Make Autoscale actions publicly available in MainMenu
  • Add a new "Zoom to problem" mode in AutoScaleAction
  • Make "Zoom to problem" menu item in validator dialog use this new feature
  • Update enabled state of "Zoom to Conflict" and "Zoom to problem" against selection of conflict/validator dialog
File:
1 edited

Legend:

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

    r5857 r5958  
    99import java.awt.Toolkit;
    1010import java.awt.event.KeyEvent;
     11import java.util.HashMap;
     12import java.util.Map;
    1113
    1214import javax.swing.JCheckBoxMenuItem;
     
    166168    public final HistoryInfoAction historyinfo = new HistoryInfoAction();
    167169    public final HistoryInfoWebAction historyinfoweb = new HistoryInfoWebAction();
     170    public final Map<String, AutoScaleAction> autoScaleActions = new HashMap<String, AutoScaleAction>();
    168171
    169172    /* Tools menu */
     
    494497        viewMenu.addSeparator();
    495498        for (String mode : AutoScaleAction.MODES) {
    496             JosmAction autoScaleAction = new AutoScaleAction(mode);
     499            AutoScaleAction autoScaleAction = new AutoScaleAction(mode);
     500            autoScaleActions.put(mode, autoScaleAction);
    497501            add(viewMenu, autoScaleAction);
    498502        }
Note: See TracChangeset for help on using the changeset viewer.