Last change
on this file since 11247 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
|
Rev | Line | |
---|
[6380] | 1 | // License: GPL. For details, see LICENSE file.
|
---|
[626] | 2 | package org.openstreetmap.josm.actions.audio;
|
---|
| 3 |
|
---|
[582] | 4 | import static org.openstreetmap.josm.tools.I18n.tr;
|
---|
[2842] | 5 | import static org.openstreetmap.josm.tools.I18n.trc;
|
---|
[582] | 6 |
|
---|
| 7 | import java.awt.event.ActionEvent;
|
---|
| 8 | import java.awt.event.KeyEvent;
|
---|
| 9 |
|
---|
[547] | 10 | import org.openstreetmap.josm.actions.JosmAction;
|
---|
[582] | 11 | import org.openstreetmap.josm.gui.layer.markerlayer.MarkerLayer;
|
---|
[1084] | 12 | import org.openstreetmap.josm.tools.Shortcut;
|
---|
[626] | 13 |
|
---|
[5871] | 14 | /**
|
---|
[6830] | 15 | * Play the sound track from the Audio Marker after the one most recently played.<br>
|
---|
[6069] | 16 | * Play from the first such Marker if none has been played, or repeat the last marker if at the end.
|
---|
[5871] | 17 | * @since 547
|
---|
| 18 | */
|
---|
[626] | 19 | public class AudioNextAction extends JosmAction {
|
---|
| 20 |
|
---|
[5871] | 21 | /**
|
---|
| 22 | * Constructs a new {@code AudioNextAction}.
|
---|
| 23 | */
|
---|
[1169] | 24 | public AudioNextAction() {
|
---|
[2857] | 25 | super(trc("audio", "Next Marker"), "audio-next", trc("audio", "Play next marker."),
|
---|
[4982] | 26 | Shortcut.registerShortcut("audio:next", tr("Audio: {0}", trc("audio", "Next Marker")), KeyEvent.VK_F8, Shortcut.DIRECT), true);
|
---|
[1169] | 27 | }
|
---|
[626] | 28 |
|
---|
[6084] | 29 | @Override
|
---|
[1169] | 30 | public void actionPerformed(ActionEvent e) {
|
---|
| 31 | MarkerLayer.playNextMarker();
|
---|
| 32 | }
|
---|
[626] | 33 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.