Changeset 12125 in josm for trunk/src/org/openstreetmap/josm/gui/MainApplication.java
- Timestamp:
- 2017-05-12T01:28:59+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/MainApplication.java
r11925 r12125 88 88 private static final List<String> COMMAND_LINE_ARGS = new ArrayList<>(); 89 89 90 private MainFrame mainFrame;90 private final MainFrame mainFrame; 91 91 92 92 /** … … 109 109 @Override 110 110 protected void initializeMainWindow() { 111 mainPanel.reAddListeners();112 111 if (mainFrame != null) { 112 mainFrame.preInitialize(); 113 panel = mainFrame.getPanel(); 113 114 mainFrame.initialize(); 114 115 115 menu = mainFrame.getMenu(); 116 116 } else { 117 117 // required for running some tests. 118 panel = new MainPanel(Main.getLayerManager()); 118 119 menu = new MainMenu(); 119 120 } 121 panel.addMapFrameListener((o, n) -> redoUndoListener.commandChanged(0, 0)); 122 panel.reAddListeners(); 120 123 } 121 124
Note:
See TracChangeset
for help on using the changeset viewer.