Package org.pkg.jstools.handlers

Source Code of org.pkg.jstools.handlers.JSLintClearHandler

/**
*
*/
package org.pkg.jstools.handlers;

import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.core.resources.ResourcesPlugin;
import org.pkg.jstools.JSLint;

/**
* @author praveen.kailas@gmail.com
*
*/
public class JSLintClearHandler extends AbstractHandler {
  /**
   * The constructor.
   */
  public JSLintClearHandler() {
  }

  /**
   * the command has been executed, so extract extract the needed information
   * from the application context.
   */
  public Object execute(ExecutionEvent event) throws ExecutionException {
    new JSLint().clearMarkers(ResourcesPlugin.getWorkspace().getRoot());
    return null;
  }
}
TOP

Related Classes of org.pkg.jstools.handlers.JSLintClearHandler

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.