commands.addCommand(new SetEditStateCommand(handler, EditState.NONE));
}
if (typeToCreate != null) {
if (typeToCreate == ShapeType.POINT) {
commands.addCommand(new StartEditingCommand(handler, parameters.event,
typeToCreate, handler.getCurrentState()));
commands.addCommand(handler.getCommand(handler.getAcceptBehaviours()));
} else {
commands.addCommand(new StartEditingCommand(handler, parameters.event,
typeToCreate, EditState.CREATING));
}
}
}