Changeset 30015 in osm


Ignore:
Timestamp:
2013-10-07T22:32:37+02:00 (11 years ago)
Author:
donvip
Message:

[josm_utilsplugin2] loose coupling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/utilsplugin2/src/org/openstreetmap/josm/plugins/utilsplugin2/selection/SelectBoundaryAction.java

    r29769 r30015  
    22package org.openstreetmap.josm.plugins.utilsplugin2.selection;
    33
    4 import java.util.LinkedHashSet;
    54import static org.openstreetmap.josm.gui.help.HelpUtil.ht;
    65import static org.openstreetmap.josm.tools.I18n.tr;
     
    4140    @Override
    4241    public void actionPerformed(ActionEvent e) {
    43         //long t=System.currentTimeMillis();
    4442        Set<Way> selectedWays = OsmPrimitive.getFilteredSet(getCurrentDataSet().getSelected(), Way.class);
    4543        Set<Node> selectedNodes = OsmPrimitive.getFilteredSet(getCurrentDataSet().getSelected(), Node.class);
    46         LinkedHashSet<Relation> selectedRelations = OsmPrimitive.getFilteredSet(getCurrentDataSet().getSelected(), Relation.class);
     44        Set<Relation> selectedRelations = OsmPrimitive.getFilteredSet(getCurrentDataSet().getSelected(), Relation.class);
    4745       
    4846        Set<Way> newWays = new HashSet<Way>();
     
    104102               return;
    105103        }
    106 
    107        
    108104       
    109105        // try going left at each turn
     
    111107            NodeWayUtils.addAreaBoundary(w, newWays, !lastUsedLeft); // try going right at each turn
    112108        }
    113        
    114        
    115109       
    116110        if (!newWays.isEmpty() ) {
     
    121115               tr("Warning"), JOptionPane.WARNING_MESSAGE);
    122116        }
    123 
    124117    }
    125118
     
    141134        setEnabled(!selection.isEmpty());
    142135    }
    143 
    144 
    145136}
Note: See TracChangeset for help on using the changeset viewer.