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

Last change on this file since 297 was 297, checked in by imi, 17 years ago
  • fixed bug that selection listener were informed twice on selection changes
File size: 529 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.setSelected();
18 }
19}
Note: See TracBrowser for help on using the repository browser.