Changeset 2011 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2009-08-30T17:28:44+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/MapFrame.java
r2005 r2011 247 247 } 248 248 } 249 250 /** 251 * Replies the instance of a toggle dialog of type <code>type</code> managed by this 252 * map frame 253 * 254 * @param <T> 255 * @param type the class of the toggle dialog, i.e. UserListDialog.class 256 * @return the instance of a toggle dialog of type <code>type</code> managed by this 257 * map frame; null, if no such dialog exists 258 * 259 */ 260 public <T> ToggleDialog getToggleDialog(Class<T> type) { 261 for (ToggleDialog td : allDialogs) { 262 if (type.isInstance(td)) 263 return td; 264 } 265 return null; 266 } 249 267 }
Note:
See TracChangeset
for help on using the changeset viewer.