2
* Created on 17-dic-2005
4
* TODO To change the template for this generated file go to
5
* Window - Preferences - Java - Code Style - Code Templates
7
package org.herac.tuxguitar.gui.actions.marker;
9
import org.eclipse.swt.events.TypedEvent;
10
import org.herac.tuxguitar.gui.actions.Action;
11
import org.herac.tuxguitar.gui.editors.TablatureEditor;
12
import org.herac.tuxguitar.gui.editors.tab.Caret;
13
import org.herac.tuxguitar.gui.marker.MarkerNavigator;
18
* TODO To change the template for this generated type comment go to
19
* Window - Preferences - Java - Code Style - Code Templates
21
public class GoPreviousMarkerAction extends Action{
22
public static final String NAME = "action.marker.go-previous";
24
public GoPreviousMarkerAction(TablatureEditor tablatureEditor) {
25
super(NAME,tablatureEditor);
28
public boolean doAction(TypedEvent e) {
29
Caret caret = getEditor().getTablature().getCaret();
31
new MarkerNavigator().goToSelectedMarker(getSongManager().getPreviousMarker(caret.getMeasureCoords().getMeasure().getNumber()));