Changeset 3837 in josm for trunk/src/org/openstreetmap/josm/gui/MainMenu.java
- Timestamp:
- 2011-02-01T01:49:32+01:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/MainMenu.java
r3737 r3837 74 74 import org.openstreetmap.josm.actions.UploadAction; 75 75 import org.openstreetmap.josm.actions.UploadSelectionAction; 76 import org.openstreetmap.josm.actions.ViewportFollowToggleAction; 76 77 import org.openstreetmap.josm.actions.WireframeToggleAction; 77 78 import org.openstreetmap.josm.actions.ZoomInAction; … … 286 287 } 287 288 289 // -- viewport follow toggle action 290 ViewportFollowToggleAction viewportFollowToggleAction = new ViewportFollowToggleAction(); 291 final JCheckBoxMenuItem vft = new JCheckBoxMenuItem(viewportFollowToggleAction); 292 viewMenu.add(vft); 293 vft.setAccelerator(viewportFollowToggleAction.getShortcut().getKeyStroke()); 294 viewportFollowToggleAction.addButtonModel(vft.getModel()); 295 288 296 // -- changeset manager toggle action 289 297 ChangesetManagerToggleAction changesetManagerToggleAction = new ChangesetManagerToggleAction();
Note:
See TracChangeset
for help on using the changeset viewer.