Last change
on this file since 104 was 104, checked in by imi, 19 years ago |
- started i18n
- started "download incomplete ways" action
- added straight line selection mode
|
File size:
815 bytes
|
Line | |
---|
1 | package org.openstreetmap.josm.actions;
|
---|
2 |
|
---|
3 | import static org.openstreetmap.josm.tools.I18n.tr;
|
---|
4 |
|
---|
5 | import java.awt.event.ActionEvent;
|
---|
6 | import java.awt.event.KeyEvent;
|
---|
7 |
|
---|
8 | import javax.swing.KeyStroke;
|
---|
9 |
|
---|
10 | import org.openstreetmap.josm.gui.PreferenceDialog;
|
---|
11 |
|
---|
12 | /**
|
---|
13 | * Open the Preferences dialog.
|
---|
14 | *
|
---|
15 | * @author imi
|
---|
16 | */
|
---|
17 | public class PreferencesAction extends JosmAction {
|
---|
18 |
|
---|
19 | /**
|
---|
20 | * Create the preference action with "&Preferences" as label.
|
---|
21 | */
|
---|
22 | public PreferencesAction() {
|
---|
23 | super(tr("Preferences"), "preference", tr("Open a preferences page for global settings."), tr("F12"), KeyStroke.getKeyStroke(KeyEvent.VK_F12, 0));
|
---|
24 | }
|
---|
25 |
|
---|
26 | /**
|
---|
27 | * Launch the preferences dialog.
|
---|
28 | */
|
---|
29 | public void actionPerformed(ActionEvent e) {
|
---|
30 | PreferenceDialog dlg = new PreferenceDialog();
|
---|
31 | dlg.setVisible(true);
|
---|
32 | }
|
---|
33 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.