package es.iiia.sgi.actions;
import org.eclipse.jface.action.Action;
import org.eclipse.jface.action.IAction;
import org.eclipse.ui.IWorkbenchPage;
import es.iiia.shapeeditor.ShapeEditor;
import es.iiia.shapeeditor.tools.CreateBezierCurveTool;
import es.iiia.shapeeditor.tools.CreateCurveTool;
public class CreateCurveAction extends Action {
public static String ID = "es.iiia.sgi.actions.createcurve";
private IWorkbenchPage page;
public CreateCurveAction(IWorkbenchPage page) {
super("Create Curve", IAction.AS_RADIO_BUTTON);
this.page = page;
}
public void run() {
((ShapeEditor) page.getActiveEditor()).setTool(new CreateBezierCurveTool());
}
}