Changeset 6202 in osm for applications/editors/josm/plugins
- Timestamp:
- 2007-12-31T16:37:22+01:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/ValidatorDialog.java
r4023 r6202 103 103 return; 104 104 105 Bag<String, Command> commands = new Bag<String, Command>();106 105 Set<DefaultMutableTreeNode> processedNodes = new HashSet<DefaultMutableTreeNode>(); 107 106 for( TreePath path : selectionPaths ) … … 126 125 if( fixCommand != null ) 127 126 { 128 commands.add(error.getMessage(),fixCommand);127 Main.main.undoRedo.add(fixCommand); 129 128 } 130 129 } 131 130 } 132 131 } 133 134 Command fixCommand = null;135 if( commands.size() == 0 )136 return;137 132 138 List<Command> allComands = new ArrayList<Command>(50);139 for( Entry<String, List<Command>> errorType : commands.entrySet())140 {141 String description = errorType.getKey();142 List<Command> errorCommands = errorType.getValue();143 allComands.add( new SequenceCommand("Fix " + description, errorCommands) );144 }145 146 if( allComands.size() > 1 )147 fixCommand = new SequenceCommand("Fix errors", allComands);148 else149 fixCommand = allComands.get(0);150 151 Main.main.undoRedo.add( fixCommand );152 133 Main.map.repaint(); 153 134 DataSet.fireSelectionChanged(Main.ds.getSelected());
Note:
See TracChangeset
for help on using the changeset viewer.