void save(IGanttProject project, TransformerHandler handler) throws SAXException, IOException { AttributesImpl attrs = new AttributesImpl(); if (project.getTaskManager().isZeroMilestones() != null) { addAttribute("empty-milestones", project.getTaskManager().isZeroMilestones(), attrs); } startElement("tasks", attrs, handler); startElement("taskproperties", handler); writeTaskProperties(handler, project.getTaskCustomColumnManager()); endElement("taskproperties", handler); Task rootTask = project.getTaskManager().getTaskHierarchy().getRootTask(); Task[] tasks = project.getTaskManager().getTaskHierarchy().getNestedTasks(rootTask); for (int i = 0; i < tasks.length; i++) { writeTask(handler, (GanttTask) tasks[i], project.getTaskCustomColumnManager()); } endElement("tasks", handler); }
private void updateHolidays(List<GanttCalendar> holidays) { myProject.getActiveCalendar().clearPublicHolidays(); for (GanttCalendar holiday : holidays) { myProject.getActiveCalendar().setPublicHoliDayType(holiday.getTime()); } }