source: josm/src/org/openstreetmap/josm/actions/UnselectAllAction.java@ 181

Last change on this file since 181 was 181, checked in by imi, 17 years ago
  • added select all / unselect all actions
  • added option to display the segment order number of a segment
  • fixed freeze when holding down middle button and moving mouse too fast
  • added warning when user deletes a layer
File size: 532 bytes
Line 
1package org.openstreetmap.josm.actions;
2
3import static org.openstreetmap.josm.tools.I18n.tr;
4
5import java.awt.event.ActionEvent;
6import java.awt.event.KeyEvent;
7
8import org.openstreetmap.josm.Main;
9
10public class UnselectAllAction extends JosmAction {
11
12 public UnselectAllAction() {
13 super(tr("Unselect All"),"unselectall", tr("Unselect all objects."), KeyEvent.VK_A, KeyEvent.CTRL_DOWN_MASK | KeyEvent.SHIFT_DOWN_MASK, true);
14 }
15
16 public void actionPerformed(ActionEvent e) {
17 Main.ds.clearSelection();
18 }
19}
Note: See TracBrowser for help on using the repository browser.