Ignore:
Timestamp:
2009-02-16T15:14:34+01:00 (15 years ago)
Author:
stoecker
Message:

applied patch #2185 by bruce89

File:
1 edited

Legend:

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

    r1379 r1415  
    365365         * that I switch layers and actions at the same time and it was annoying to mind the
    366366         * order. This way it works as visual clue for new users */
    367         for (Enumeration e = Main.map.toolGroup.getElements() ; e.hasMoreElements() ;) {
    368             AbstractButton x=(AbstractButton)e.nextElement();
     367        for (Enumeration<AbstractButton> e = Main.map.toolGroup.getElements() ; e.hasMoreElements() ;) {
     368            AbstractButton x=e.nextElement();
    369369            x.setEnabled(((MapMode)x.getAction()).layerIsSupported(layer));
    370370        }
     
    400400     *
    401401     * @return <code>true</code> if a zoom operation has been performed
    402      * @author Jan Peter Stotz
    403402     */
    404403    public boolean zoomToEditLayerBoundingBox() {
Note: See TracChangeset for help on using the changeset viewer.