Newer
Older
package org.etsi.mts.ttcn3.part9.newtestcase.handlers;
import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
import org.etsi.mts.ttcn3.part9.popup.actions.NewPositiveTestCase;
import org.etsi.mts.ttcn3.part9.popup.actions.NewTestCase;
/**
* Our sample handler extends AbstractHandler, an IHandler base class.
* @see org.eclipse.core.commands.IHandler
* @see org.eclipse.core.commands.AbstractHandler
*/
public class NewPositiveTestCaseHandler extends AbstractHandler {
/**
* the command has been executed, so extract extract the needed information
* from the application context.
*/
public Object execute(ExecutionEvent event) throws ExecutionException {
NewTestCase tc = new NewPositiveTestCase();
tc.runAsCommand();
return null;
}
}