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.layout;
9
import org.eclipse.swt.events.TypedEvent;
10
import org.herac.tuxguitar.gui.actions.Action;
11
import org.herac.tuxguitar.gui.editors.tab.layout.ViewLayout;
16
* TODO To change the template for this generated type comment go to
17
* Window - Preferences - Java - Code Style - Code Templates
19
public class SetChordDiagramEnabledAction extends Action{
20
public static final String NAME = "action.view.layout-set-chord-diagram-enabled";
22
public SetChordDiagramEnabledAction() {
23
super(NAME, AUTO_LOCK | AUTO_UNLOCK | AUTO_UPDATE | KEY_BINDING_AVAILABLE);
26
protected int execute(TypedEvent e){
27
ViewLayout layout = getEditor().getTablature().getViewLayout();
28
layout.setStyle( ( layout.getStyle() ^ ViewLayout.DISPLAY_CHORD_DIAGRAM) );