@Override
public void setActiveEditor(IEditorPart part) {
super.setActiveEditor(part);
if (part instanceof ShapeEditor) {
IEditTool cmd = ((ShapeEditor) part).getCurrentTool();
lineAction.setChecked(cmd instanceof CreateLineTool);
polyLineAction.setChecked(cmd instanceof CreatePolyLineTool);
curvesAction.setChecked(cmd instanceof CreateCurveTool);
modifyVerticesAction.setChecked(cmd instanceof ModifyVerticesTool);