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
|
Rev | Line | |
---|
[1] | 1 | package org.openstreetmap.josm.actions;
|
---|
| 2 |
|
---|
| 3 | import java.awt.event.ActionEvent;
|
---|
| 4 | import java.awt.event.KeyEvent;
|
---|
| 5 |
|
---|
| 6 | import javax.swing.AbstractAction;
|
---|
| 7 |
|
---|
[17] | 8 | import org.openstreetmap.josm.gui.ImageProvider;
|
---|
[1] | 9 | import org.openstreetmap.josm.gui.PreferenceDialog;
|
---|
| 10 |
|
---|
| 11 | /**
|
---|
| 12 | * Open the Preferences dialog.
|
---|
| 13 | *
|
---|
| 14 | * @author imi
|
---|
| 15 | */
|
---|
| 16 | public class PreferencesAction extends AbstractAction {
|
---|
| 17 |
|
---|
| 18 | /**
|
---|
| 19 | * Create the preference action with "&Preferences" as label.
|
---|
| 20 | */
|
---|
| 21 | public PreferencesAction() {
|
---|
[17] | 22 | super("Preferences", ImageProvider.get("preference"));
|
---|
[1] | 23 | putValue(MNEMONIC_KEY, KeyEvent.VK_P);
|
---|
[17] | 24 | putValue(SHORT_DESCRIPTION, "Open a preferences page for global settings.");
|
---|
[1] | 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.