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.view;
9
import org.eclipse.swt.SWT;
10
import org.eclipse.swt.events.TypedEvent;
11
import org.herac.tuxguitar.gui.TuxGuitar;
12
import org.herac.tuxguitar.gui.actions.Action;
17
* TODO To change the template for this generated type comment go to
18
* Window - Preferences - Java - Code Style - Code Templates
20
public class ShowFretBoardAction extends Action{
21
public static final String NAME = "action.view.show-fretboard";
23
public ShowFretBoardAction() {
24
super(NAME, AUTO_LOCK | AUTO_UNLOCK | AUTO_UPDATE | KEY_BINDING_AVAILABLE);
27
protected int execute(TypedEvent e){
28
TuxGuitar.instance().loadCursor(SWT.CURSOR_WAIT);
29
if(TuxGuitar.instance().getFretBoardEditor().isVisible()){
30
TuxGuitar.instance().getFretBoardEditor().hideFretBoard();
32
TuxGuitar.instance().getFretBoardEditor().showFretBoard();
34
TuxGuitar.instance().loadCursor(SWT.CURSOR_ARROW);