Package net.sourceforge.ganttproject.task.algorithm

Examples of net.sourceforge.ganttproject.task.algorithm.RecalculateTaskCompletionPercentageAlgorithm.run()


        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


        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

        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

                .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

TOP
Copyright © 2018 www.massapi.com. 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.