Changeset 6088 in josm for trunk/src


Ignore:
Timestamp:
2013-07-26T20:37:48+02:00 (11 years ago)
Author:
akks
Message:

see #8900 [patch by AlfonZ] - prevent menu-related exceptions for plugins
(force menu-adding plugins to use JOSM 6088 to compile)

File:
1 edited

Legend:

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

    r6082 r6088  
    251251    public final JMenu helpMenu = addMenu(marktr("Help"), KeyEvent.VK_H, 11, ht("/Menu/Help"));
    252252
    253     public final int defaultMenuPos = 11;
     253    private final int defaultMenuPos = 11;
    254254
    255255    public final JosmAction moveUpAction = new MoveAction(MoveAction.Direction.UP);
     
    291291        }
    292292    };
     293   
     294    /**
     295     * @since 6088
     296     * @return the default position of tnew top-level menus
     297     */
     298    public int getDefaultMenuPos() {
     299         return defaultMenuPos;
     300    }
    293301
    294302    /**
Note: See TracChangeset for help on using the changeset viewer.