001 // License: GPL. Copyright 2007 by Immanuel Scholz and others 002 package org.openstreetmap.josm.actions.audio; 003 004 import static org.openstreetmap.josm.tools.I18n.tr; 005 import static org.openstreetmap.josm.tools.I18n.trc; 006 007 import java.awt.event.ActionEvent; 008 import java.awt.event.KeyEvent; 009 010 import org.openstreetmap.josm.actions.JosmAction; 011 import org.openstreetmap.josm.gui.layer.markerlayer.MarkerLayer; 012 import org.openstreetmap.josm.tools.Shortcut; 013 014 public class AudioNextAction extends JosmAction { 015 016 public AudioNextAction() { 017 super(trc("audio", "Next Marker"), "audio-next", trc("audio", "Play next marker."), 018 Shortcut.registerShortcut("audio:next", tr("Audio: {0}", trc("audio", "Next Marker")), KeyEvent.VK_F8, Shortcut.DIRECT), true); 019 } 020 021 public void actionPerformed(ActionEvent e) { 022 MarkerLayer.playNextMarker(); 023 } 024 }