closing dialog window after 3 seconds [message #668651] |
Fri, 06 May 2011 11:07  |
Eclipse User |
|
|
|
Hi guys,
new to RCP and having a bit of trouble.
What I want to do is:
When my eclipse RCP app is starting up, after the user authenticates a security dialog window pops up which says the security information of the user before loading the main application.
What I want to happen is the security dialog automatically closes after 3 seconds and meanwhile the main application thread continues running and launches the application.
What would be the best way to go about this?
The problem I'm having is that after I create the security dialog, I am unable to close it as I have no way to reaccess it inside of a TimerTask (im using the timer to countdown 3 seconds). I thought about using Activator.getDefault().getWorkbench().getShell() and then shell.getShell() to get the children of the main shell created by the activator but then realized that this isn't possible because the security dialog isn't a child of the parent shell because the parent shell (application!) doesnt finish being created until after the security dialog is created... Thus, it seems like my security dialog is lost in space. Is there any way to get a reference to it?
-.-*
there must be a better way of doing this that I'm not seeing.
Any ideas??
thanks a ton!
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.07147 seconds