Package net.sourceforge.processdash.log.time

Examples of net.sourceforge.processdash.log.time.TimeLoggingModel


        // if the request did not supply a prefix, use the path of the currently
        // selected task
        if (!StringUtils.hasValue(result)) {
            DashboardContext ctx = getDashboardContext();
            DashboardTimeLog tl = (DashboardTimeLog) ctx.getTimeLog();
            TimeLoggingModel tlm = tl.getTimeLoggingModel();
            result = tlm.getActiveTaskModel().getPath();
        }

        return result;
    }
View Full Code Here


            public void actionPerformed(ActionEvent e) {
                DashController.raiseWindow();
            }
        };
       
        final TimeLoggingModel timeLoggingModel = pdash.getTimeLoggingModel();
        playPauseAction = new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                timeLoggingModel.setPaused(!timeLoggingModel.isPaused());
            }
        };

        changeTaskAction = pdash.getChangeTaskAction();
    }
View Full Code Here

    }

    private void writeTimingState() {
        DashboardContext ctx = getDashboardContext();
        DashboardTimeLog tl = (DashboardTimeLog) ctx.getTimeLog();
        TimeLoggingModel tlm = tl.getTimeLoggingModel();
        String path = tlm.getActiveTaskModel().getPath();
        String isTiming = tlm.isPaused() ? "false" : "true";

        out.write("Content-Type: text/plain\r\n\r\n");
        out.write("activeTask=" + path + "\r\n");
        out.write("isTiming=" + isTiming + "\r\n");
        out.flush();
View Full Code Here

        reminderTimer = new Timer(this.getTimeout() * 1000 * 60, al);
        stopOrRestartTimer();

        // Restart the timer whenever the user uses the dashboard to stop/start
        // or change the currently active task
        TimeLoggingModel tlm = pdash.getTimeLoggingModel();
        tlm.addPropertyChangeListener(pcl);
    }
View Full Code Here

TOP

Related Classes of net.sourceforge.processdash.log.time.TimeLoggingModel

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.