Package edu.harvard.wcfia.yoshikoder

Source Code of edu.harvard.wcfia.yoshikoder.MacHelpAction

package edu.harvard.wcfia.yoshikoder;

import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;

import javax.swing.Action;
import javax.swing.KeyStroke;

import com.apple.eawt.Application;

public class MacHelpAction extends YoshikoderAction{

    public MacHelpAction(Yoshikoder yk) {
        super(yk, MacHelpAction.class.getName());
        // override...
        putValue(Action.ACCELERATOR_KEY,
                KeyStroke.getKeyStroke(
                KeyEvent.VK_SLASH, KeyEvent.SHIFT_MASK |
                Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()));
    }

    public void actionPerformed(ActionEvent e) {
      Application app = Application.getApplication();
      app.openHelpViewer();
     
        //HelpBook.launchHelpViewer();
    }   
}
TOP

Related Classes of edu.harvard.wcfia.yoshikoder.MacHelpAction

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.