source: josm/src/org/openstreetmap/josm/actions/PreferencesAction.java@ 113

Last change on this file since 113 was 113, checked in by imi, 18 years ago

fixed i18n messages (cleanup)

File size: 747 bytes
Line 
1package org.openstreetmap.josm.actions;
2
3import static org.openstreetmap.josm.tools.I18n.tr;
4
5import java.awt.event.ActionEvent;
6import java.awt.event.KeyEvent;
7
8import org.openstreetmap.josm.gui.PreferenceDialog;
9
10/**
11 * Open the Preferences dialog.
12 *
13 * @author imi
14 */
15public 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.