Package pspdash

Examples of pspdash.TimeLog


        header = StringUtils.findAndReplace(header, "%for owner%", owner);
        header = StringUtils.findAndReplace(header, "%for path%", title);
        header = StringUtils.findAndReplace(header, "%css%", cssLinkHTML());
        out.print(header);

        TimeLog tl = new TimeLog();
        tl.readDefault();

        PSPProperties props = getPSPProperties();
        Enumeration rows = tl.filter(props.findExistingKey(path), null, null);
        TimeLogEntry tle;
        String entryPath, phase;
        int slashPos;
        while (rows.hasMoreElements()) {
            tle = (TimeLogEntry) rows.nextElement();
View Full Code Here


        //PSPProperties props = getPSPProperties();
        //PropertyKey key = props.findExistingKey(path);
        System.out.println("getting time log");

        // Get a copy of the time log.
        TimeLog tl = new TimeLog();
        tl.readDefault();

        System.out.println("scanning for depth");
        // first, scan the time log to see how deep a hierarchy we need.
        Enumeration rows = tl.filter(PropertyKey.ROOT, null, null);
        TimeLogEntry tle;
        String entryPath;
        int depth = 1, currDepth, i;
        while (rows.hasMoreElements()) {
            tle = (TimeLogEntry) rows.nextElement();
            entryPath = tle.getPath();
            System.out.println(entryPath);
            currDepth = countSlashes(entryPath);
            if (currDepth > depth) depth = currDepth;
        }
        System.out.println("depth is " + depth);

        out.print(HEADER_START);
        for (i=0;   i++ < depth;  )
            out.print(HEADER_MIDA + i + HEADER_MIDB);
        out.print(HEADER_END);

        System.out.println("scanning to print");

        // Now scan the time log and print out each row.
        rows = tl.filter(PropertyKey.ROOT, null, null);
        StringTokenizer tok;
        while (rows.hasMoreElements()) {
            tle = (TimeLogEntry) rows.nextElement();

            out.println("<TR>");
View Full Code Here

TOP

Related Classes of pspdash.TimeLog

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.