Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » closing dialog window after 3 seconds(dialog window closing)
closing dialog window after 3 seconds [message #668651] Fri, 06 May 2011 11:07 Go to next message
Eclipse UserFriend
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!
Re: closing dialog window after 3 seconds [message #668656 is a reply to message #668651] Fri, 06 May 2011 11:19 Go to previous messageGo to next message
Eclipse UserFriend
Put a pointer to it in a static field?
Re: closing dialog window after 3 seconds [message #668755 is a reply to message #668656] Fri, 06 May 2011 23:14 Go to previous message
Eclipse UserFriend
ah yeah i tried that before but i got this "invalid thread access" solved it just now using the asyncExec method to enter the UI thread..

thanks!
Previous Topic:How to remove popup menus in a perspective
Next Topic:Context Menu in Eclipse
Goto Forum:
  


Current Time: Sun Aug 31 08:33:06 EDT 2025

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

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

Back to the top