Knowing if my app is being used [message #459028] |
Thu, 28 July 2005 17:06  |
Eclipse User |
|
|
|
I have an app which needs to automatically log a user out after a period
of inactivity. The timer stuff is easy enough. The problem is how do I
know the user is actively using my app? I am hoping to not have to hook
into every widget to know they typed in it, or selected it, or clicked
it, etc.
Any ideas?
Thanks,
Mike Higginbotham
|
|
|
|
|
|
|
|
|
Re: Knowing if my app is being used [message #459094 is a reply to message #459091] |
Mon, 01 August 2005 15:46  |
Eclipse User |
|
|
|
Look at:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=37061
It has a code snippet for exactly what you need.
-Chris
"Mike Higginbotham" <higginmi@us.ibm.com> wrote in message
news:dclsmd$jph$1@news.eclipse.org...
> Thanks, Stefan! This is what I was looking for. I tried addListener but
> for some reason totally missed addFilter. Perfect.
>
> - Mike
>
> Stefan Zeiger wrote:
> > Mike Higginbotham wrote:
> >
> >> I have an app which needs to automatically log a user out after a
> >> period of inactivity. The timer stuff is easy enough. The problem is
> >> how do I know the user is actively using my app? I am hoping to not
> >> have to hook into every widget to know they typed in it, or selected
> >> it, or clicked it, etc.
> >
> >
> > You could add an event filter to the display (Display.addFilter()) to
> > listen for all MouseDown and KeyPressed events that occur in your
> > application.
> >
|
|
|
Powered by
FUDForum. Page generated in 0.05752 seconds