Last change
on this file since 1023 was 1023, checked in by stoecker, 15 years ago |
close bug #1622. Keyboard shortcuts and specific OS handling
|
-
Property svn:eol-style
set to
native
|
File size:
753 bytes
|
Line | |
---|
1 | // License: GPL. Copyright 2007 by Immanuel Scholz and others
|
---|
2 | package org.openstreetmap.josm.actions;
|
---|
3 |
|
---|
4 | import static org.openstreetmap.josm.tools.I18n.tr;
|
---|
5 |
|
---|
6 | import java.awt.event.ActionEvent;
|
---|
7 | import java.awt.event.KeyEvent;
|
---|
8 |
|
---|
9 | import org.openstreetmap.josm.Main;
|
---|
10 | import org.openstreetmap.josm.tools.ShortCut;
|
---|
11 |
|
---|
12 | public 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: 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.