|
Re: Inactivity timeout Login screen [message #1722764 is a reply to message #1722760] |
Mon, 08 February 2016 22:36 |
Jim Klo Messages: 49 Registered: September 2012 |
Member |
|
|
Michael Dedina wrote on Mon, 08 February 2016 16:32Our RCP 3.8 application currently presents a login dialog at startup. But we have a user requirement to add an inactivity timeout. When the timeout occurs, we need to obscure the workbench completely and present the login dialog again.
Any suggestions on how to approach this? The timeout doesn't seem difficult, but how to obscure the application? Perhaps programmatically switch to a perspective that contains just a single view?
Michael
Does it matter if you set some flag and restart the workbench and use a custom org.eclipse.ui.splashHandler extension point? I have a similar "EULA Agreement" license check that works as a custom splashHandler. If you set a timeout to just save all work and restart the workbench the splashHandler could prompt for login and automatically prevent access to the workbench.
I'm not sure that there is an "easy" way to obscure the application in a pre-4.0 application, other than making a modal window that is the same size as the display. Even then with 4.0+ not all apps are built with FX where you could add some kind of global "blur" to the CSS. Maybe you can dynamically modify the theme... using SWT CSS - I've done this before but not sure if those kind of "advanced" CSS features would be supported.
[Updated on: Mon, 08 February 2016 22:41] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03451 seconds