Ignore:
Timestamp:
30.08.2009 17:31:52 (3 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.