import com.jdbernard.timeanalyzer.* import com.jdbernard.timestamper.core.* import com.quantumdigital.ithelp.timeanalyzer.* tep = new TimelineEventProcessor() tep.exclusions << ~/Going Home/ uri = new URI("file:///C:/Documents%20and%20Settings/jbernard/My%20Documents/projects/time-analyzer/timeline.jdbernard.txt") fileSource = new FileTimelineSource(uri) timeline = fileSource.read() events = tep.process(timeline) topcat = new GeneralCategory() topcat.description = "Top Category" thelpcat = new ITHelpCategory() iithelpcat.description = "ITHelp" topcat.categories << ithelpcat events.each { if (topcat.matchesEvent(it)) topcat.addEvent(it) }