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

Last change on this file since 1054 was 1054, checked in by stoecker, 15 years ago

fixed a lot of the shortcut related translations

  • Property svn:eol-style set to native
File size: 764 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;
10import org.openstreetmap.josm.tools.ShortCut;
11
12public class SelectAllAction extends JosmAction {
13
14 public SelectAllAction() {
15 super(tr("Select All"),"selectall", tr("Select all undeleted objects in the data layer. This selects incomplete objects too."),
16 ShortCut.registerShortCut("system:selectall", tr("Edit: {0}", tr("Select All")), KeyEvent.VK_A, ShortCut.GROUP_MENU), true);
17 }
18
19 public void actionPerformed(ActionEvent e) {
20 Main.ds.setSelected(Main.ds.allNonDeletedPhysicalPrimitives());
21 }
22}
Note: See TracBrowser for help on using the repository browser.