Package org.cfeclipse.cfml.snippets.handlers

Source Code of org.cfeclipse.cfml.snippets.handlers.SnippetActionHandler

package org.cfeclipse.cfml.snippets.handlers;

import org.cfeclipse.cfml.snippets.commands.InsertSnippetCommand;
import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;

public class SnippetActionHandler extends AbstractHandler {

  /**
   * a simple wrapper for actions. Uses a command parameter and reflection to
   * fire off the passed-in action class.
   */

  public Object execute(ExecutionEvent event) throws ExecutionException {
    InsertSnippetCommand snippetCommand = new InsertSnippetCommand();
    return snippetCommand.execute(event);
  }

}
TOP

Related Classes of org.cfeclipse.cfml.snippets.handlers.SnippetActionHandler

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.