Changeset 6070 in josm for trunk/src/org/openstreetmap/josm/gui/dialogs/CommandStackDialog.java
- Timestamp:
- 2013-07-17T00:01:49+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/CommandStackDialog.java
r5958 r6070 75 75 private SelectAction selectAction = new SelectAction(); 76 76 private SelectAndZoomAction selectAndZoomAction = new SelectAndZoomAction(); 77 77 78 78 public CommandStackDialog(final MapFrame mapFrame) { 79 79 super(tr("Command Stack"), "commandstack", tr("Open a list of all commands (undo buffer)."), … … 89 89 undoTree.getSelectionModel().addTreeSelectionListener(undoSelectionListener); 90 90 InputMapUtils.unassignCtrlShiftUpDown(undoTree, JComponent.WHEN_FOCUSED); 91 91 92 92 redoTree.addMouseListener(new MouseEventHandler()); 93 93 redoTree.setRootVisible(false); … … 124 124 new SideButton(redoAction) 125 125 })); 126 126 127 127 InputMapUtils.addEnterAction(undoTree, selectAndZoomAction); 128 128 InputMapUtils.addEnterAction(redoTree, selectAndZoomAction); … … 303 303 return node; 304 304 } 305 305 306 306 /** 307 307 * Return primitives that are affected by some command 308 * @param path GUI elements 309 * @return collection of affected primitives, onluy usable ones 308 * @param path GUI elements 309 * @return collection of affected primitives, onluy usable ones 310 310 */ 311 311 protected static FilteredCollection<OsmPrimitive> getAffectedPrimitives(TreePath path) { … … 354 354 Main.map.mapView.getEditLayer().data.setSelected( getAffectedPrimitives(path)); 355 355 } 356 356 357 357 @Override 358 358 public void updateEnabledState() { … … 377 377 } 378 378 } 379 379 380 380 /** 381 381 * undo / redo switch to reduce duplicate code … … 448 448 super(new CommandStackPopup()); 449 449 } 450 450 451 451 @Override 452 452 public void mouseClicked(MouseEvent evt) { … … 456 456 } 457 457 } 458 458 459 459 private class CommandStackPopup extends JPopupMenu { 460 460 public CommandStackPopup(){
Note:
See TracChangeset
for help on using the changeset viewer.