if (controller.isChangeAllowed(opNode)) {
ScheduleId prevId = opNode.getDataObject().getScheduleId();
ScheduleId newId = (schedule != null ? schedule.getID() : null);
if (differs(prevId, newId)) {
opNode.getDataObject().setScheduleId(newId);
UndoableEdit edit = new OperationScheduleEdit(controller, opNode, prevId, newId);
controller.fireGraphDataEdit(edit);
return true;
}
}
return false;