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.file;
9
import org.eclipse.swt.events.TypedEvent;
10
import org.herac.tuxguitar.gui.TuxGuitar;
11
import org.herac.tuxguitar.gui.actions.Action;
12
import org.herac.tuxguitar.gui.editors.TablatureEditor;
17
* TODO To change the template for this generated type comment go to
18
* Window - Preferences - Java - Code Style - Code Templates
20
public class NewFileAction extends Action{
21
public static final String NAME = "action.file.new";
23
public NewFileAction(TablatureEditor tablatureEditor) {
24
super(NAME,true,tablatureEditor);
27
public boolean doAction(TypedEvent e) {
28
getEditor().getSongManager().newSong();
29
getEditor().resetDefaults();
30
TuxGuitar.instance().getFileHistory().clearFile();
31
TuxGuitar.instance().getMixer().update();
32
TuxGuitar.instance().getTableViewer().getTableInfo().fireUpdate();
33
TuxGuitar.instance().showTitle();