Ignore:
Timestamp:
2012-09-11T09:55:54+02:00 (13 years ago)
Author:
larry0ua
Message:

'RelToolbox: added warning messages to the warning icon hint'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/SortAndFixAction.java

    r28693 r28703  
    3737        rel.addChosenRelationListener(this);
    3838        setEnabled(false);
    39        
     39
    4040        // construct all available fixers
    4141        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        }
    4650    }
    4751
     52    @Override
    4853    public void actionPerformed( ActionEvent e ) {
    4954        Command c = fixRelation(rel.get());
     
    5257    }
    5358
     59    @Override
    5460    public void chosenRelationChanged( Relation oldRelation, Relation newRelation ) {
    5561        setEnabled(newRelation != null && needsFixing( newRelation));
     
    5965        return !isIncomplete(rel) && !getFixer(rel).isRelationGood(rel);
    6066    }
    61    
     67
    6268    private RelationFixer getFixer( Relation rel ) {
    6369        for(RelationFixer fixer : fixers)
Note: See TracChangeset for help on using the changeset viewer.