Package code.satyagraha.gfm.viewer.commands

Source Code of code.satyagraha.gfm.viewer.commands.Online

package code.satyagraha.gfm.viewer.commands;

import java.util.logging.Logger;

import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.Command;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.ui.handlers.HandlerUtil;

public class Online extends AbstractHandler {

    private static Logger LOGGER = Logger.getLogger(Online.class.getPackage().getName());

    @Override
    public Object execute(final ExecutionEvent event) throws ExecutionException {
        // update toggled state
        final Command command = event.getCommand();
        final boolean state = !HandlerUtil.toggleCommandState(command);
        LOGGER.fine("state: " + state);
        return null;
    }

}
TOP

Related Classes of code.satyagraha.gfm.viewer.commands.Online

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.