Changeset 12643 in josm for trunk/src/org/openstreetmap/josm/gui/MainApplication.java
- Timestamp:
- 2017-08-25T10:18:53+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/MainApplication.java
r12642 r12643 136 136 137 137 /** 138 * The main menu bar at top of screen. 139 */ 140 static MainMenu menu; 141 142 /** 138 143 * The main panel, required to be static for {@link MapFrameListener} handling. 139 144 */ … … 278 283 mainFrame.initialize(); 279 284 menu = mainFrame.getMenu(); 285 super.menu = menu; 280 286 } else { 281 287 // required for running some tests. … … 283 289 panel = mainPanel; 284 290 menu = new MainMenu(); 291 super.menu = menu; 285 292 } 286 293 mainPanel.addMapFrameListener((o, n) -> redoUndoListener.commandChanged(0, 0)); … … 377 384 public static MainPanel getMainPanel() { 378 385 return mainPanel; 386 } 387 388 /** 389 * Returns the main menu, at top of screen. 390 * @return the main menu 391 * @since 12643 (as a replacement to {@code MainApplication.getMenu()}) 392 */ 393 public static MainMenu getMenu() { 394 return menu; 379 395 } 380 396
Note:
See TracChangeset
for help on using the changeset viewer.