Changeset 2012 in josm


Ignore:
Timestamp:
2009-08-30T17:31:52+02:00 (15 years ago)
Author:
Gubaer
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/MapFrame.java

    r2011 r2012  
    258258     *
    259259     */
    260     public <T> ToggleDialog getToggleDialog(Class<T> type) {
     260    public <T> T getToggleDialog(Class<T> type) {
    261261        for (ToggleDialog td : allDialogs) {
    262262            if (type.isInstance(td))
    263                 return td;
     263                return type.cast(td);
    264264        }
    265265        return null;
Note: See TracChangeset for help on using the changeset viewer.