source: josm/trunk/src/org/openstreetmap/josm/actions/SelectAllAction.java@ 572

Last change on this file since 572 was 298, checked in by imi, 17 years ago
  • added license description to head of each source file
File size: 652 bytes
Line 
1// License: GPL. Copyright 2007 by Immanuel Scholz and others
2package org.openstreetmap.josm.actions;
3
4import static org.openstreetmap.josm.tools.I18n.tr;
5
6import java.awt.event.ActionEvent;
7import java.awt.event.KeyEvent;
8
9import org.openstreetmap.josm.Main;
10
11public class SelectAllAction extends JosmAction {
12
13 public SelectAllAction() {
14 super(tr("Select All"),"selectall", tr("Select all undeleted objects in the data layer. This selects incomplete objects too."), KeyEvent.VK_A, KeyEvent.CTRL_DOWN_MASK, true);
15 }
16
17 public void actionPerformed(ActionEvent e) {
18 Main.ds.setSelected(Main.ds.allNonDeletedPrimitives());
19 }
20}
Note: See TracBrowser for help on using the repository browser.