Search in sources :

Example 1 with TimeLoggingApprover

use of net.sourceforge.processdash.log.time.TimeLoggingApprover 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

DashHierarchy (net.sourceforge.processdash.hier.DashHierarchy)1 DashboardTimeLog (net.sourceforge.processdash.log.time.DashboardTimeLog)1 TimeLoggingApprover (net.sourceforge.processdash.log.time.TimeLoggingApprover)1 TimeLogEditor (net.sourceforge.processdash.log.ui.TimeLogEditor)1