Changeset 28703 in osm for applications/editors/josm/plugins/reltoolbox/src/relcontext/actions
- Timestamp:
- 2012-09-11T09:55:54+02:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/SortAndFixAction.java
r28693 r28703 37 37 rel.addChosenRelationListener(this); 38 38 setEnabled(false); 39 39 40 40 // construct all available fixers 41 41 fixers = new ArrayList<RelationFixer>(); 42 fixers.add(new BoundaryFixer()); // should be before multipolygon as takes special case of multipolygon relation - boundary 43 fixers.add(new MultipolygonFixer()); 44 fixers.add(new AssociatedStreetFixer()); 45 42 //should be before multipolygon as takes special case of multipolygon relation - boundary 43 fixers.add(new BoundaryFixer()); // boundary, multipolygon, boundary=administrative 44 fixers.add(new MultipolygonFixer()); // multipolygon 45 fixers.add(new AssociatedStreetFixer()); //associatedStreet 46 47 for(RelationFixer fix : fixers) { 48 fix.setFixAction(this); 49 } 46 50 } 47 51 52 @Override 48 53 public void actionPerformed( ActionEvent e ) { 49 54 Command c = fixRelation(rel.get()); … … 52 57 } 53 58 59 @Override 54 60 public void chosenRelationChanged( Relation oldRelation, Relation newRelation ) { 55 61 setEnabled(newRelation != null && needsFixing( newRelation)); … … 59 65 return !isIncomplete(rel) && !getFixer(rel).isRelationGood(rel); 60 66 } 61 67 62 68 private RelationFixer getFixer( Relation rel ) { 63 69 for(RelationFixer fixer : fixers)
Note:
See TracChangeset
for help on using the changeset viewer.