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.CreateLineTool;
import es.iiia.shapeeditor.tools.CreatePolyLineTool;
public class CreatePolyLineAction extends Action {
private IWorkbenchPage page;
public CreatePolyLineAction(IWorkbenchPage page) {
super("Create PolyLine", IAction.AS_RADIO_BUTTON);
this.page = page;
}
public void run() {
((ShapeEditor) page.getActiveEditor()).setTool(new CreatePolyLineTool());
}
}