} else if (tool instanceof CreateLineTool) {
return new CreateLineCommand(editor);
} else if (tool instanceof CreatePolyLineTool) {
return new CreatePolyLineCommand(editor);
} else if (tool instanceof ModifyRuleTool) {
return new ModifyRuleCommand(editor);
} else if (tool instanceof CreateBezierCurveTool) {
return new CreateBezierCurveCommand(editor);
} else if (tool instanceof CreateMarkerTool) {
return new CreateMarkerCommand(editor);
}