Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 135668

Summary: [activity] support integrating activity monitoring outside of the workbench
Product: z_Archived Reporter: Jed Anderson <jed.anderson>
Component: MylynAssignee: Mik Kersten <mik.kersten>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P4 CC: ekuleshov, litrik_de_roy, mik.kersten, mlists, yuri
Version: 0.4Keywords: helpwanted
Target Milestone: 2.0 M1   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
mylar/context/zip none

Description Jed Anderson CLA 2006-04-07 17:46:16 EDT
I have some tasks that require lots of work outside the workbench (web browsing, email writing, etc).

I'd like to mark some tasks as being active even when the workbench is active.  This way the timer will keep running, even if I am reading web pages or something.

I understand that this does, to some extent defeat the purpose of the task tracking, but perhaps if I enable this for a task two timers could be kept.  One timer would track my time in the workbench (and would be definitive), the other would track the overall time and would therefore be inacurate, but still give me some estimate of my overall time spent on a task.

Keep up the great work!  I'm a Mylar convert already!
Comment 1 Jed Anderson CLA 2006-04-07 17:50:44 EDT
As another example, if I am debugging, does Mylar know I am debugging?  Some of my test cases require a few minutes of setup before I can actually run my test.  Having Mylar keep track of my total elapsed time would allow me to say, "This setup takes too long, I need to automate it," with definitive numbers to back up my decision.
Comment 2 Jed Anderson CLA 2006-04-08 02:55:58 EDT
That second sentence should be:

I'd like to mark some tasks as being active even when the workbench is _not_ active. 
Comment 3 Mik Kersten CLA 2006-04-27 20:58:35 EDT
Thanks for the kind words Jed!  I know exactly what you mean and want this too.  I've been thinking about it and wonder if we could track whether there is activity in any window that's active, but the problem is that this will require platform-specific extensions (I wonder how Windows Messenger does it?).  So we may be forced to do what you suggest and keep two times around.

The debugging case might be better though, because we may be able to attach to that shell and figure out if it is active.
Comment 4 Mik Kersten CLA 2006-05-04 11:21:28 EDT
Another todo: we need to exclude time that the task has been paused.
Comment 5 Stefan Langer CLA 2006-05-04 12:17:11 EDT
Actually for starters I would suggest something more simple.
When activating a task get the system time and record it somewhere (task list)
When pausing a task get the system time again and record the time spent on the task. Same applies to eclipse shutdown etc...
This way you get intervals of time spend in a task which you simply have to add up to get the overall time. 
No need to track anything outside of eclipse.
This won't be as accurate and the user has to remember to pause the task when he is leaving eclipse to do something totaly unnessecary. 
Comment 6 Mik Kersten CLA 2006-08-28 13:02:25 EDT
Stefan: I agree that this is probably the best way to get some of this functionality without getting onto the slippery slope of monitoring OS-specific interaction (which I briefly investigated).  However, I am concerned that it would be way too easy to leave such a timer running, so this may require a separate "manual timer" attribute which could be edited directly if needed.  Marking helpwanted, at least for now, since we too many other high priority items ahead of this.
Comment 7 Eugene Kuleshov CLA 2006-08-28 13:32:32 EDT
I also need this because elapsed time shown on Task Activity view is screwed real bad.

You can make timer suggested by Stefan more visible by adding icon to the system tray. http://www.eclipsezone.com/eclipse/forums/t66093.html
Comment 8 Mik Kersten CLA 2007-01-23 12:10:07 EST
This requires OS-specific monitoring extensions, which are outside of the scope of Mylar.  However, what we can do for Mylar 2.0 is enable OS-specific monitoring extensions to contribute to the activity mechanism. 
Comment 9 Mik Kersten CLA 2007-02-07 13:25:53 EST
Done.  Extension point is in org.eclipse.mylar.monitor.ui.  Name might still change.
Comment 10 Mik Kersten CLA 2007-02-07 13:26:31 EST
Marking fixed.
Comment 11 Mik Kersten CLA 2007-02-07 13:26:34 EST
Created attachment 58465 [details]
mylar/context/zip