Changeset 3439 in osm for applications/editors/josm/plugins/validator/src/org
- Timestamp:
- 2007-07-01T22:20:12+02:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/ValidatorDialog.java
r2802 r3439 133 133 if( commands.size() == 0 ) 134 134 return; 135 else if( commands.size() > 1 ) 135 136 List<Command> allComands = new ArrayList<Command>(50); 137 for( Entry<String, List<Command>> errorType : commands.entrySet()) 136 138 { 137 List<Command> allComands = new ArrayList<Command>(50); 138 for( Entry<String, List<Command>> errorType : commands.entrySet()) 139 { 140 String description = errorType.getKey(); 141 List<Command> errorCommands = errorType.getValue(); 142 allComands.add( new SequenceCommand("Fix " + description, errorCommands) ); 143 } 144 139 String description = errorType.getKey(); 140 List<Command> errorCommands = errorType.getValue(); 141 allComands.add( new SequenceCommand("Fix " + description, errorCommands) ); 142 } 143 144 if( allComands.size() > 1 ) 145 145 fixCommand = new SequenceCommand("Fix errors", allComands); 146 }147 146 else 148 { 149 for( Entry<String, List<Command>> errorType : commands.entrySet()) 150 { 151 String description = errorType.getKey(); 152 List<Command> errorCommands = errorType.getValue(); 153 fixCommand = new SequenceCommand("Fix " + description, errorCommands); 154 } 155 } 147 fixCommand = (Command)allComands.get(0); 156 148 157 149 Main.main.editLayer().add( fixCommand );
Note:
See TracChangeset
for help on using the changeset viewer.