source: josm/trunk/src/org/openstreetmap/josm/actions/audio/AudioPrevAction.java@ 11063

Last change on this file since 11063 was 6830, checked in by Don-vip, 10 years ago

javadoc fixes for jdk8 compatibility

  • Property svn:eol-style set to native
File size: 1.1 KB
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.actions.audio;
3
4import static org.openstreetmap.josm.tools.I18n.tr;
5import static org.openstreetmap.josm.tools.I18n.trc;
6
7import java.awt.event.ActionEvent;
8import java.awt.event.KeyEvent;
9
10import org.openstreetmap.josm.actions.JosmAction;
11import org.openstreetmap.josm.gui.layer.markerlayer.MarkerLayer;
12import org.openstreetmap.josm.tools.Shortcut;
13
14/**
15 * Play the sound track from the Audio Marker before the one most recently played.<br>
16 * Play from the first such Marker if none has been played or already at the first marker.
17 * @since 547
18 */
19public class AudioPrevAction extends JosmAction {
20
21 /**
22 * Constructs a new {@code AudioPrevAction}.
23 */
24 public AudioPrevAction() {
25 super(trc("audio", "Previous Marker"), "audio-prev", trc("audio", "Play previous marker."),
26 Shortcut.registerShortcut("audio:prev", tr("Audio: {0}", trc("audio", "Previous Marker")), KeyEvent.VK_F5, Shortcut.DIRECT), true);
27 }
28
29 @Override
30 public void actionPerformed(ActionEvent e) {
31 MarkerLayer.playPreviousMarker();
32 }
33}
Note: See TracBrowser for help on using the repository browser.