Package net.sourceforge.ganttproject

Examples of net.sourceforge.ganttproject.GanttPreviousState


                            overWrite = false;
                        break;
                    }
                if (overWrite) {
                    try {
                        myPreviousState = new GanttPreviousState(
                                previousStateBean.getName(), myProject);
                        isSaved = true;
                        previousStateBean.setDefaultName();

                    } catch (IOException e) {
View Full Code Here


        if (qName.equals("previous-tasks")) {
            setName(attrs.getValue("name"));
            tasks = new ArrayList();
            if (myPreviousStates != null) {
                try {
                    previousState = new GanttPreviousState(myName);
                    myPreviousStates.add(previousState);
                } catch (IOException e) {
                  if (!GPLogger.log(e)) {
                    e.printStackTrace(System.err);
                  }
View Full Code Here

    void save(List/*<GanttPreviousState*/ history, TransformerHandler handler) throws SAXException, ParserConfigurationException, IOException {
        AttributesImpl attrs = new AttributesImpl();
        startElement("previous", handler);
        for (int i=0; i<history.size(); i++) {
            final GanttPreviousState nextState = (GanttPreviousState) history.get(i);
            final List/*<GanttPreviousStateTask>*/ stateTasks = nextState.load();
            addAttribute("name", nextState.getName(), attrs);
            startElement("previous-tasks", attrs, handler);
            // ArrayList list =
            // ((GanttPreviousState)previous.get(i)).getTasks();
            for (int j=0; j<stateTasks.size(); j++) {
                GanttPreviousStateTask task = (GanttPreviousStateTask)stateTasks.get(j);
View Full Code Here

TOP

Related Classes of net.sourceforge.ganttproject.GanttPreviousState

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.