Package net.sourceforge.processdash.ev

Examples of net.sourceforge.processdash.ev.EVTaskList.recalc()


                hierarchy, null, false);
            if (tl instanceof EVTaskListData && !includePersonal)
                continue;
            if (tl instanceof EVTaskListRollup && !includeRollups)
                continue;
            tl.recalc();
            tl = new EVTaskListMerged(tl, false, true, null);

            if (taskLabeler == null) {
                taskLabeler = new DefaultTaskLabeler(this);
                taskLabeler.recalculate();
View Full Code Here


                ctx.getData(), ctx.getHierarchy(), ctx.getCache(), false);
            if (tl == null)
                continue;

            tl.setDependencyCalculator(null);
            tl.recalc();
            taskLists.add(tl);
            result.append("<" + HIST_TASK_LIST_TAG + " " + NAME_ATTR + "='")
                    .append(XMLUtils.escapeAttribute(taskListName)) //
                    .append("' />");
        }
View Full Code Here

                EVTaskList tl = EVTaskList.openExisting(name, ctx.getData(),
                        ctx.getHierarchy(), ctx.getCache(), false);
                if (tl == null)
                    continue;

                tl.recalc();
                String xml = tl.getAsXML(false);
                name = exportedScheduleDataName(owner, name);
                out.write(name + ",");
                out.write(StringData.escapeString(xml));
                out.println();
View Full Code Here

            if (tl == null)
                continue;

            tl.setDependencyCalculator(new EVDependencyCalculator(
                    ctx.getData(), ctx.getHierarchy(), ctx.getCache()));
            tl.recalc();
           
            if (merged)
                tl = new EVTaskListMerged(tl, false, false, null);
           
            schedules.put(taskScheduleName, tl);
View Full Code Here

            if (taskListNames != null && taskListNames.size() == 1) {
                String taskListName = (String) taskListNames.get(0);
                EVTaskList tl = EVTaskList.openExisting(taskListName,
                    context.getData(), context.getHierarchy(),
                    context.getCache(), false);
                tl.recalc();
                List l = tl.findTasksByFullName(taskPath);
                if (l != null && l.size() == 1) {
                    EVTask t = (EVTask) l.get(0);
                    for (Iterator i = dependencies.iterator(); i.hasNext();) {
                        EVTaskDependency d = (EVTaskDependency) i.next();
View Full Code Here

                    if (!(tl instanceof EVTaskListData))
                        return resources.format("Navigator.Errors.Invalid_FMT",
                                displayName);
       
                    ((EVTaskListData) tl).recalcLeavesOnly();
                    tl.recalc();
                   
                    return tl;
                } catch (Exception e) {
                    logger.log(Level.WARNING,
                            "When opening task list, caught exception:", e);
View Full Code Here

        EVDependencyCalculator depCalc = new EVDependencyCalculator(
                getDataRepository(), getPSPProperties(), getObjectCache());
        evModel.setDependencyCalculator(depCalc);
        evModel.setTaskLabeler(new DefaultTaskLabeler(getDashboardContext()));
       
        evModel.recalc();
        EVSchedule schedule = evModel.getSchedule();

        String effDateParam = getParameter(EFF_DATE_PARAM);
        Date effDate = null;
        if (effDateParam != null) try {
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.