Changeset 12563 in josm for trunk/test/unit/org/openstreetmap/josm/JOSMFixture.java
- Timestamp:
- 2017-08-03T21:43:11+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/JOSMFixture.java
r12559 r12563 151 151 152 152 initContentPane(); 153 initMainPanel( );153 initMainPanel(false); 154 154 initToolbar(); 155 155 if (Main.main == null) { … … 157 157 } else { 158 158 if (Main.main.panel == null) { 159 initMainPanel( );159 initMainPanel(false); 160 160 Main.main.panel = Main.mainPanel; 161 161 } … … 177 177 /** 178 178 * Make sure {@code Main.mainPanel} is initialized. 179 * @param reAddListeners {@code true} to re-add listeners 179 180 */ 180 public static void initMainPanel( ) {181 public static void initMainPanel(boolean reAddListeners) { 181 182 if (Main.mainPanel == null) { 182 183 Main.mainPanel = new MainPanel(Main.getLayerManager()); 184 } 185 if (reAddListeners) { 186 Main.mainPanel.reAddListeners(); 183 187 } 184 188 }
Note:
See TracChangeset
for help on using the changeset viewer.