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.help;
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.help.doc.DocDialog;
13
import org.herac.tuxguitar.gui.help.doc.DocException;
14
import org.herac.tuxguitar.gui.util.MessageDialog;
19
* TODO To change the template for this generated type comment go to Window -
20
* Preferences - Java - Code Style - Code Templates
22
public class ShowDocAction extends Action {
23
public static final String NAME = "action.help.doc";
25
public ShowDocAction() {
26
super(NAME, AUTO_LOCK | AUTO_UNLOCK | KEY_BINDING_AVAILABLE );
29
protected int execute(TypedEvent e){
31
new DocDialog().show(TuxGuitar.instance().getShell());
32
} catch (DocException throwable) {
33
MessageDialog.errorMessage(throwable);