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

Last change on this file since 753 was 753, checked in by stoecker, 16 years ago

no longer select relations and incomplete elements. Fixes #616.

  • Property svn:eol-style set to native
File size: 641 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.allNonDeletedPhysicalPrimitives());
19 }
20}
Note: See TracBrowser for help on using the repository browser.