Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Bringing RCP app to the front
Bringing RCP app to the front [message #460682] Wed, 27 December 2006 18:53 Go to next message
Eclipse UserFriend
Originally posted by: devals9.hotmail.com

Hello,
I am deploying my RCP app with Java Web start. When a user clicks the link to launch the RCP app it launches it in the background. I want it to be launched in front of all the open applications i.e. it should get the focus. I tried this:
In WorkbenchAdvisor.postStartup(){
shell.setVisible(true);
shell.forceActive();
shell.setActive();
shell.setFocus();
shell.setMinimized(false);
}

But this is not working. Any idea ?

Thank you in advance.
Re: Bringing RCP app to the front [message #460713 is a reply to message #460682] Thu, 28 December 2006 15:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: devals9.hotmail.com

Hello,
Found the solution to it.
This is what you need to do
shell.setVisible(false);
shell.setMinimized(true);
shell.setVisible(true);
shell.setActive();
shell.setFocus();
shell.setMinimized(false);
Minimize and maximize it.
Re: Bringing RCP app to the front [message #460780 is a reply to message #460713] Fri, 29 December 2006 05:45 Go to previous messageGo to next message
Eclipse UserFriend
I had the same problem... But expected a 'pretty' solution...
Any other hint?

"Deval" <devals9@hotmail.com> wrote in message
news:18768078.1167339233529.JavaMail.root@cp1.javalobby.org...
> Hello,
> Found the solution to it.
> This is what you need to do
> shell.setVisible(false);
> shell.setMinimized(true);
> shell.setVisible(true);
> shell.setActive();
> shell.setFocus();
> shell.setMinimized(false);
> Minimize and maximize it.
Re: Bringing RCP app to the front [message #460792 is a reply to message #460780] Fri, 29 December 2006 09:18 Go to previous message
Eclipse UserFriend
how about shell.forceActive()?


Anibal Maffioletti de Deus wrote:
> I had the same problem... But expected a 'pretty' solution...
> Any other hint?
>
> "Deval" <devals9@hotmail.com> wrote in message
> news:18768078.1167339233529.JavaMail.root@cp1.javalobby.org...
>> Hello,
>> Found the solution to it.
>> This is what you need to do
>> shell.setVisible(false);
>> shell.setMinimized(true);
>> shell.setVisible(true);
>> shell.setActive();
>> shell.setFocus();
>> shell.setMinimized(false);
>> Minimize and maximize it.
>
>
Previous Topic:activating cell editor in tableviewer
Next Topic:Activator stop(): call super first or last?
Goto Forum:
  


Current Time: Fri Mar 21 02:26:12 EDT 2025

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

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

Back to the top