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

Last change on this file since 17 was 17, checked in by imi, 19 years ago
  • added Layer support
  • added support for raw GPS data
  • fixed tooltips
  • added options for loading gpx files
File size: 815 bytes
Line 
1package org.openstreetmap.josm.actions;
2
3import java.awt.event.ActionEvent;
4import java.awt.event.KeyEvent;
5
6import javax.swing.AbstractAction;
7
8import org.openstreetmap.josm.gui.ImageProvider;
9import org.openstreetmap.josm.gui.PreferenceDialog;
10
11/**
12 * Open the Preferences dialog.
13 *
14 * @author imi
15 */
16public class PreferencesAction extends AbstractAction {
17
18 /**
19 * Create the preference action with "&Preferences" as label.
20 */
21 public PreferencesAction() {
22 super("Preferences", ImageProvider.get("preference"));
23 putValue(MNEMONIC_KEY, KeyEvent.VK_P);
24 putValue(SHORT_DESCRIPTION, "Open a preferences page for global settings.");
25 }
26
27 /**
28 * Launch the preferences dialog.
29 */
30 public void actionPerformed(ActionEvent e) {
31 PreferenceDialog dlg = new PreferenceDialog();
32 dlg.setVisible(true);
33 }
34}
Note: See TracBrowser for help on using the repository browser.