Changeset 12642 in josm for trunk/test/unit/org
- Timestamp:
- 2017-08-25T03:29:37+02:00 (7 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/JOSMFixture.java
r12639 r12642 140 140 } 141 141 142 @SuppressWarnings("deprecation") 142 143 private void setupGUI() { 143 144 JOSMTestRules.cleanLayerEnvironment(); … … 154 155 if (Main.main.panel == null) { 155 156 initMainPanel(false); 156 Main.main.panel = MainApplication Test.getMainPanel();157 Main.main.panel = MainApplication.getMainPanel(); 157 158 } 158 159 Main.main.panel.reAddListeners(); -
trunk/test/unit/org/openstreetmap/josm/gui/MainApplicationTest.java
r12639 r12642 80 80 * @param reAddListeners {@code true} to re-add listeners 81 81 */ 82 @SuppressWarnings("deprecation") 82 83 public static void initMainPanel(boolean reAddListeners) { 83 84 if (MainApplication.mainPanel == null) { … … 90 91 Main.main.panel = MainApplication.mainPanel; 91 92 } 92 }93 94 /**95 * Returns {@link MainApplication#mainPanel} (not public).96 * @return {@link MainApplication#mainPanel}97 */98 public static MainPanel getMainPanel() {99 return MainApplication.mainPanel;100 93 } 101 94
Note:
See TracChangeset
for help on using the changeset viewer.