Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » get eclipse runtime idle time
get eclipse runtime idle time [message #691638] Fri, 01 July 2011 22:37 Go to next message
Hao Missing name is currently offline Hao Missing nameFriend
Messages: 115
Registered: July 2009
Senior Member
We want to get eclipse runtime idle time such that we can take corresponding actions. I tried eclipse Display.addFilter() and readAndDispatch() function for mouse up and key up events, we can only get part of the events but not all, such as menu selection and operations in embedded browsers are not caught. Does eclipse provides API to get its idle time? or Is there any way I can get notified for all of the user's activity events?
Re: get eclipse runtime idle time [message #692170 is a reply to message #691638] Sun, 03 July 2011 19:34 Go to previous messageGo to next message
Michael Pellaton is currently offline Michael PellatonFriend
Messages: 289
Registered: July 2009
Senior Member
Hi

I must admin, I don't get what you want to do exactly. However, I don't
think Eclipse offers what you want. I would rather try to get the data
from the JVM.

Look at the class ManagmentFactory and the MXBeans you can obtain from
it. If you are using a Sun JVM, you may get even more information if
you look at the actual type of the MXBean and cast accordingly (Sun's
classes have the exact same name, but are in a different package and
they sometimes offer more information)

Michael
Re: get eclipse runtime idle time [message #692860 is a reply to message #692170] Tue, 05 July 2011 11:22 Go to previous messageGo to next message
Hao Missing name is currently offline Hao Missing nameFriend
Messages: 115
Registered: July 2009
Senior Member
What I am trying to do is:
While eclipse runs but the end user does not do anything or conduct any activities with it for a predefined period of time, we would like to exit or close eclipse. For this purpose, we need to know how long a user has not being taken any action.

hao
Re: get eclipse runtime idle time [message #692942 is a reply to message #692860] Tue, 05 July 2011 13:56 Go to previous messageGo to next message
HagenFriend
Messages: 90
Registered: April 2010
Member
On 07/05/2011 01:22 PM, Hao wrote:
> What I am trying to do is:
> While eclipse runs but the end user does not do anything or conduct any
> activities with it for a predefined period of time, we would like to
> exit or close eclipse. For this purpose, we need to know how long a user
> has not being taken any action.

How do you know that the user does not run an overnight regression test
and wants the result the next morning? Can you imagine what happens if
an overnight test result is lost because of your new feature?

How do you know that the user is not waiting for a very-hard-to-trigger
debug event? "After three weeks of intensive testing finally the
hard-to-catch event triggered. Unfortunately afterwards Eclipse was
idle, and an hour later the IDE was closed because of your "feature"."
Can you imagine what _then_ happens?


=> The simple solution is to configure the PC's energy saving function
to shutdown the machine after e.g. 2 hours of idle time.

(a) This frees more resources than just closing the Eclipse workbench.

(b) In case someone runs automated tests, they know at least what system
setting they have to look into and to change.
Re: get eclipse runtime idle time [message #693229 is a reply to message #692942] Wed, 06 July 2011 04:41 Go to previous message
Hao Missing name is currently offline Hao Missing nameFriend
Messages: 115
Registered: July 2009
Senior Member
The case you described does not apply to our application. our major concern is security.
Previous Topic:XML import in RCP
Next Topic:How to apply Hit Count in CDT?
Goto Forum:
  


Current Time: Wed Apr 24 16:50:50 GMT 2024

Powered by FUDForum. Page generated in 0.04929 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top