Package net.sourceforge.ganttproject.task.algorithm

Examples of net.sourceforge.ganttproject.task.algorithm.RecalculateTaskCompletionPercentageAlgorithm


        //
        task1.move(supertask);
        task2.move(supertask);
        task3.move(supertask);
        //
        RecalculateTaskCompletionPercentageAlgorithm alg = taskManager
                .getAlgorithmCollection()
                .getRecalculateTaskCompletionPercentageAlgorithm();
        alg.run(supertask);
        assertEquals("Unexpected completion percentage of supertask="
                + supertask, 0, supertask.getCompletionPercentage());

    }
View Full Code Here


        //
        task1.setCompletionPercentage(100);
        task2.setCompletionPercentage(100);
        task3.setCompletionPercentage(100);
        //
        RecalculateTaskCompletionPercentageAlgorithm alg = taskManager
                .getAlgorithmCollection()
                .getRecalculateTaskCompletionPercentageAlgorithm();
        alg.run(supertask);
        assertEquals("Unexpected completion percentage of supertask="
                + supertask, 100, supertask.getCompletionPercentage());

    }
View Full Code Here

        //
        task1.setCompletionPercentage(50);
        task2.setCompletionPercentage(50);
        task3.setCompletionPercentage(50);
        //
        RecalculateTaskCompletionPercentageAlgorithm alg = taskManager
                .getAlgorithmCollection()
                .getRecalculateTaskCompletionPercentageAlgorithm();
        alg.run(supertask);
        assertEquals("Unexpected completion percentage of supertask="
                + supertask, 50, supertask.getCompletionPercentage());

    }
View Full Code Here

        getCustomColumnsStorage().processNewTask(task);

        AdjustTaskBoundsAlgorithm alg = getTaskManager()
                .getAlgorithmCollection().getAdjustTaskBoundsAlgorithm();
        alg.run(task);
        RecalculateTaskCompletionPercentageAlgorithm alg2 = getTaskManager()
                .getAlgorithmCollection()
                .getRecalculateTaskCompletionPercentageAlgorithm();
        alg2.run(task);
        area.repaint();
        setAskForSave(true);
        getUIFacade().setStatusText(language.getText("createNewTask"));
        // setQuickSave(true);
        tree.setEditingTask(task);
View Full Code Here

                alg3) {
            protected TaskContainmentHierarchyFacade createContainmentFacade() {
                return TaskManagerImpl.this.getTaskHierarchy();
            }
        };
        RecalculateTaskCompletionPercentageAlgorithm alg4 = new RecalculateTaskCompletionPercentageAlgorithm() {
            protected TaskContainmentHierarchyFacade createContainmentFacade() {
                return TaskManagerImpl.this.getTaskHierarchy();
            }
        };
        ProjectBoundsAlgorithm alg5 = new ProjectBoundsAlgorithm();
View Full Code Here

TOP

Related Classes of net.sourceforge.ganttproject.task.algorithm.RecalculateTaskCompletionPercentageAlgorithm

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.