Changeset 17090 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2020-10-07T07:46:55+02:00 (5 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/MapViewState.java
r16919 r17090 132 132 } 133 133 134 private static Point findTopLeftInWindow(JComponent position) { 134 /** 135 * This is visible for JMockit. 136 * 137 * @param position The component to get the top left position of its window 138 * @return the top left point in window 139 */ 140 static Point findTopLeftInWindow(JComponent position) { 135 141 Point result = new Point(); 136 142 // better than using swing utils, since this allows us to use the method if no screen is present. … … 144 150 } 145 151 146 private static Point findTopLeftOnScreen(JComponent position) { 152 /** 153 * This is visible for JMockit. 154 * 155 * @param position The component to get the top left position of its screen 156 * @return the top left point on screen 157 */ 158 static Point findTopLeftOnScreen(JComponent position) { 147 159 try { 148 160 return position.getLocationOnScreen(); -
trunk/src/org/openstreetmap/josm/gui/util/GuiHelper.java
r16438 r17090 204 204 } 205 205 206 private static void handleEDTException(Throwable t) { 206 /** 207 * Handle exceptions in the EDT. This should only be used in {@link GuiHelper} 208 * and {@code org.openstreetmap.josm.testutils.mockers.EDTAssertionMocker}. 209 * 210 * @param t The throwable to handle 211 */ 212 static void handleEDTException(Throwable t) { 207 213 Logging.logWithStackTrace(Logging.LEVEL_ERROR, t, "Exception raised in EDT"); 208 214 }
Note:
See TracChangeset
for help on using the changeset viewer.