Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Showing dialogs before workbench window is created.
Showing dialogs before workbench window is created. [message #198391] Fri, 20 February 2004 08:07 Go to next message
Eclipse UserFriend
Originally posted by: eostroukhov.hotmail.com

Hi all!

I need to show login dialog to esteblish connection to the server - then
views/editors can be filled with data. But the problem is that this dialog
is often obscured by the splash screen - so user has to use Alt+Tab to find
it. I've tried to refactor my application to show the dialog after the
workbench is shown but I've had bad luck - things like content providers for
the views must be filled while the workbench is not shown. How can I make my
dialog modal when the splash screen is shown? I've tried to shut down the
splash screen - but my dialog still doesn't get the taskbar button...

Eugene
Re: Showing dialogs before workbench window is created. [message #198465 is a reply to message #198391] Fri, 20 February 2004 09:43 Go to previous messageGo to next message
Eclipse UserFriend
Are you writing an RCP Application? Then you should consider to write an
application and a workbench advisor class which will give you callbacks at
various point during the startup process (preWindowOpen, postWindowOpen,
....).

To get a taskbar button, you could use a trick and make a top level shell
which you place off the screen (x=-500,y=-500) and make your dialog a child
of it.

Martin

"Eugene Ostroukhov" <eostroukhov@hotmail.com> schrieb im Newsbeitrag
news:c150kn$ns4$1@eclipse.org...
> Hi all!
>
> I need to show login dialog to esteblish connection to the server - then
> views/editors can be filled with data. But the problem is that this dialog
> is often obscured by the splash screen - so user has to use Alt+Tab to
find
> it. I've tried to refactor my application to show the dialog after the
> workbench is shown but I've had bad luck - things like content providers
for
> the views must be filled while the workbench is not shown. How can I make
my
> dialog modal when the splash screen is shown? I've tried to shut down the
> splash screen - but my dialog still doesn't get the taskbar button...
>
> Eugene
>
>
Re: Showing dialogs before workbench window is created. [message #199551 is a reply to message #198465] Mon, 23 February 2004 02:31 Go to previous message
Eclipse UserFriend
Originally posted by: eostroukhov.hotmail.com

I'm planning to migrate to the Eclipse 3 (and RCP) in April, so I am still
on 2.1.2. I've found one way that is ok for me - using Display.findDisplay
(Thread.currentThread) creates toolbar button if I need one.

"Martin Klinke" <martin-klinke@gmx.de> wrote in message
news:c1565b$vk4$1@eclipse.org...
> Are you writing an RCP Application? Then you should consider to write an
> application and a workbench advisor class which will give you callbacks at
> various point during the startup process (preWindowOpen, postWindowOpen,
> ...).
>
> To get a taskbar button, you could use a trick and make a top level shell
> which you place off the screen (x=-500,y=-500) and make your dialog a
child
> of it.
>
> Martin
>
> "Eugene Ostroukhov" <eostroukhov@hotmail.com> schrieb im Newsbeitrag
> news:c150kn$ns4$1@eclipse.org...
> > Hi all!
> >
> > I need to show login dialog to esteblish connection to the server - then
> > views/editors can be filled with data. But the problem is that this
dialog
> > is often obscured by the splash screen - so user has to use Alt+Tab to
> find
> > it. I've tried to refactor my application to show the dialog after the
> > workbench is shown but I've had bad luck - things like content providers
> for
> > the views must be filled while the workbench is not shown. How can I
make
> my
> > dialog modal when the splash screen is shown? I've tried to shut down
the
> > splash screen - but my dialog still doesn't get the taskbar button...
> >
> > Eugene
> >
> >
>
>
Previous Topic:Table widget
Next Topic:Error finding plugin action in M7
Goto Forum:
  


Current Time: Wed May 14 09:49:40 EDT 2025

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

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

Back to the top