Changeset 3275 in josm for trunk/src/org
- Timestamp:
- 2010-05-24T18:07:12+02:00 (15 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/command/SequenceCommand.java
r3262 r3275 95 95 96 96 @Override 97 @SuppressWarnings("unchecked") 97 98 public Collection<PseudoCommand> getChildren() { 98 99 return (List) Arrays.asList(sequence); -
trunk/src/org/openstreetmap/josm/data/UndoRedoHandler.java
r3262 r3275 104 104 Collection<? extends OsmPrimitive> oldSelection = Main.main.getCurrentDataSet().getSelected(); 105 105 for (int i=0; i<num; ++i) { 106 final Command c = redoCommands. pop();106 final Command c = redoCommands.removeFirst(); 107 107 c.executeCommand(); 108 108 commands.add(c); -
trunk/src/org/openstreetmap/josm/gui/dialogs/CommandStackDialog.java
r3262 r3275 135 135 } 136 136 137 @Override138 137 public void valueChanged(TreeSelectionEvent e) { 139 138 if (source == undoTree) { … … 183 182 184 183 tree.addTreeSelectionListener(new TreeSelectionListener() { 185 @Override186 184 public void valueChanged(TreeSelectionEvent e) { 187 185 updater.updateEnabledState(); … … 190 188 191 189 tree.getModel().addTreeModelListener(new TreeModelListener() { 192 @Override193 190 public void treeNodesChanged(TreeModelEvent e) { 194 191 updater.updateEnabledState(); 195 192 } 196 193 197 @Override198 194 public void treeNodesInserted(TreeModelEvent e) { 199 195 updater.updateEnabledState(); 200 196 } 201 197 202 @Override203 198 public void treeNodesRemoved(TreeModelEvent e) { 204 199 updater.updateEnabledState(); 205 200 } 206 201 207 @Override208 202 public void treeStructureChanged(TreeModelEvent e) { 209 203 updater.updateEnabledState(); … … 307 301 } 308 302 309 @Override310 303 public void commandChanged(int queueSize, int redoSize) { 311 304 if (!isVisible()) … … 324 317 } 325 318 326 @Override327 319 public void actionPerformed(ActionEvent e) { 328 320 TreePath path; … … 343 335 c.getParticipatingPrimitives(), 344 336 new Predicate<OsmPrimitive>(){ 345 @Override346 337 public boolean evaluate(OsmPrimitive o) { 347 338 OsmPrimitive p = currentLayer.data.getPrimitiveById(o); … … 353 344 } 354 345 355 @Override356 346 public void updateEnabledState() { 357 347 setEnabled(!undoTree.isSelectionEmpty() || !redoTree.isSelectionEmpty()); … … 395 385 } 396 386 397 @Override398 387 public void actionPerformed(ActionEvent e) { 399 388 lastOperation = type; … … 420 409 } 421 410 422 @Override423 411 public void updateEnabledState() { 424 412 // do not allow execution if nothing is selected or a sub command was selected
Note:
See TracChangeset
for help on using the changeset viewer.