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 org.openstreetmap.josm.gui.PreferenceDialog;
|
---|
9 |
|
---|
10 | /**
|
---|
11 | * Open the Preferences dialog.
|
---|
12 | *
|
---|
13 | * @author imi
|
---|
14 | */
|
---|
15 | public class PreferencesAction extends JosmAction {
|
---|
16 |
|
---|
17 | /**
|
---|
18 | * Create the preference action with "&Preferences" as label.
|
---|
19 | */
|
---|
20 | public PreferencesAction() {
|
---|
21 | super(tr("Preferences"), "preference", tr("Open a preferences page for global settings."), KeyEvent.VK_F12, 0);
|
---|
22 | }
|
---|
23 |
|
---|
24 | /**
|
---|
25 | * Launch the preferences dialog.
|
---|
26 | */
|
---|
27 | public void actionPerformed(ActionEvent e) {
|
---|
28 | PreferenceDialog dlg = new PreferenceDialog();
|
---|
29 | dlg.setVisible(true);
|
---|
30 | }
|
---|
31 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.