Last change
on this file since 6361 was 6084, checked in by bastiK, 11 years ago |
see #8902 - add missing @Override annotations (patch by shinigami)
|
-
Property svn:eol-style
set to
native
|
File size:
1.0 KB
|
Rev | Line | |
---|
[1030] | 1 | // License: GPL. Copyright 2007 by Immanuel Scholz and others
|
---|
| 2 | package org.openstreetmap.josm.actions;
|
---|
| 3 |
|
---|
| 4 | import static org.openstreetmap.josm.tools.I18n.tr;
|
---|
[2323] | 5 | import static org.openstreetmap.josm.gui.help.HelpUtil.ht;
|
---|
[1030] | 6 |
|
---|
| 7 | import java.awt.event.ActionEvent;
|
---|
| 8 | import java.awt.event.KeyEvent;
|
---|
| 9 |
|
---|
| 10 | import org.openstreetmap.josm.Main;
|
---|
[1084] | 11 | import org.openstreetmap.josm.tools.Shortcut;
|
---|
[1030] | 12 |
|
---|
| 13 | public class ToggleGPXLinesAction extends JosmAction {
|
---|
| 14 |
|
---|
[1169] | 15 | public ToggleGPXLinesAction() {
|
---|
| 16 | super(tr("Toggle GPX Lines"), "gps-lines", tr("Toggles the global setting ''{0}''.", tr("Draw lines between raw gps points.")),
|
---|
[4982] | 17 | Shortcut.registerShortcut("view:gpxlines", tr("View: {0}", tr("Toggle GPX Lines")), KeyEvent.VK_X, Shortcut.SHIFT), true);
|
---|
[2323] | 18 | putValue("help", ht("/Action/ToggleGPXLines"));
|
---|
[1169] | 19 | }
|
---|
[1030] | 20 |
|
---|
[6084] | 21 | @Override
|
---|
[1169] | 22 | public void actionPerformed(ActionEvent e) {
|
---|
[3027] | 23 | Main.pref.put("draw.rawgps.lines", !Main.pref.getBoolean("draw.rawgps.lines", true));
|
---|
[5460] | 24 | if (Main.isDisplayingMapView()) {
|
---|
[1502] | 25 | Main.map.mapView.repaint();
|
---|
[3027] | 26 | }
|
---|
[1169] | 27 | }
|
---|
[1030] | 28 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.