source: josm/trunk/src/org/openstreetmap/josm/actions/audio/AudioNextAction.java @ 5241

Revision 4982, 857 bytes checked in by stoecker, 3 months ago (diff)

see #7226 - patch by akks (fixed a bit) - fix shortcut deprecations

  • Property svn:eol-style set to native
Line 
1// License: GPL. Copyright 2007 by Immanuel Scholz and others
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
14public class AudioNextAction extends JosmAction {
15
16    public AudioNextAction() {
17        super(trc("audio", "Next Marker"), "audio-next", trc("audio", "Play next marker."),
18        Shortcut.registerShortcut("audio:next", tr("Audio: {0}", trc("audio", "Next Marker")), KeyEvent.VK_F8, Shortcut.DIRECT), true);
19    }
20
21    public void actionPerformed(ActionEvent e) {
22        MarkerLayer.playNextMarker();
23    }
24}
Note: See TracBrowser for help on using the repository browser.