Search in sources :

Example 6 with DashboardTimeLog

use of net.sourceforge.processdash.log.time.DashboardTimeLog in project processdash by dtuma.

the class ConfigureButton method startTimeLog.

public void startTimeLog(PropertyKey phase) {
    DashHierarchy hier = parent.getProperties();
    if (phase == null)
        phase = parent.getCurrentPhase();
    if (hier != null) {
        if (time_frame != null) {
            time_frame.setSelectedNode(phase);
            time_frame.show();
        } else {
            DashboardTimeLog timeLog = (DashboardTimeLog) parent.getTimeLog();
            TimeLoggingApprover approver = timeLog;
            time_frame = new TimeLogEditor(timeLog, hier, approver, phase);
            parent.addApplicationEventListener(time_frame);
        }
    }
}
Also used : DashboardTimeLog(net.sourceforge.processdash.log.time.DashboardTimeLog) TimeLoggingApprover(net.sourceforge.processdash.log.time.TimeLoggingApprover) DashHierarchy(net.sourceforge.processdash.hier.DashHierarchy) TimeLogEditor(net.sourceforge.processdash.log.ui.TimeLogEditor)

Aggregations

DashboardTimeLog (net.sourceforge.processdash.log.time.DashboardTimeLog)6 DashboardContext (net.sourceforge.processdash.DashboardContext)3 TimeLoggingModel (net.sourceforge.processdash.log.time.TimeLoggingModel)3 DashHierarchy (net.sourceforge.processdash.hier.DashHierarchy)2 PropertyKey (net.sourceforge.processdash.hier.PropertyKey)1 TimeLoggingApprover (net.sourceforge.processdash.log.time.TimeLoggingApprover)1 TimeLogEditor (net.sourceforge.processdash.log.ui.TimeLogEditor)1