Last change
on this file since 10308 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.
|
---|
2 | package org.openstreetmap.josm.actions.audio;
|
---|
3 |
|
---|
4 | import static org.openstreetmap.josm.tools.I18n.tr;
|
---|
5 | import static org.openstreetmap.josm.tools.I18n.trc;
|
---|
6 |
|
---|
7 | import java.awt.event.ActionEvent;
|
---|
8 | import java.awt.event.KeyEvent;
|
---|
9 |
|
---|
10 | import org.openstreetmap.josm.actions.JosmAction;
|
---|
11 | import org.openstreetmap.josm.gui.layer.markerlayer.MarkerLayer;
|
---|
12 | import 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 | */
|
---|
19 | public 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.