Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Help! Dialog and SWT_AWT
Help! Dialog and SWT_AWT [message #458888] Mon, 25 July 2005 15:42 Go to next message
Eclipse UserFriend
Originally posted by: no_email_please.hotmail.com

Hi, I've been trying to get a Dialog (or JDialog) to show modal in a
plugin but I can never get it to work ok, I've been searching this site
forever and just can't find the answer. The best I've got so far (which
still doesn't work well) is this:

Frame myFrame = new Frame(); //Create a frame
Dialog myDialog = new Dialog(myFrame)

Eclipse doesn't refresh properly either with this.

Can anybody explain to me what a composite is exactly. Seems like that may
be the answer to my problem. Does my plugin have a composite???

Thanks
Nic
Re: Help! Dialog and SWT_AWT [message #458936 is a reply to message #458888] Tue, 26 July 2005 19:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: no_email_please.hotmail.com

Hmmm.... still trying to figure this one out. Seems to me like this is
either not working properly or very tricky to get to work. What
are my other options? How can I open a Dialog or JDialog
(modal as much as possible) inside eclipse?

I am working from the plug-in sample and trying to use the
SWT_AWT class.

Anybody's got a code snippet for me or ideas?
I would really appreciate it!

Thanks
Nic

"Nicolas Legare" <no_email_please@hotmail.com> wrote in message
news:dc31a6$lh2$1@news.eclipse.org...
> Hi, I've been trying to get a Dialog (or JDialog) to show modal in a
> plugin but I can never get it to work ok, I've been searching this site
> forever and just can't find the answer. The best I've got so far (which
> still doesn't work well) is this:
>
> Frame myFrame = new Frame(); //Create a frame
> Dialog myDialog = new Dialog(myFrame)
>
> Eclipse doesn't refresh properly either with this.
>
> Can anybody explain to me what a composite is exactly. Seems like that may
> be the answer to my problem. Does my plugin have a composite???
>
> Thanks
> Nic
>
>
Re: Help! Dialog and SWT_AWT [message #459105 is a reply to message #458936] Tue, 02 August 2005 07:18 Go to previous messageGo to next message
Dieter Wachters is currently offline Dieter WachtersFriend
Messages: 3
Registered: July 2009
Junior Member
Hi,

I'm having the same problem. Need to show a modal Swing JDialog in my
eclipse application, but I can't get it to work properly.
Did you solve the problem yet?

Kind regards,

Dieter


"Nicolas Legare" <no_email_please@hotmail.com> wrote in message
news:dc61ui$usl$1@news.eclipse.org...
> Hmmm.... still trying to figure this one out. Seems to me like this is
> either not working properly or very tricky to get to work. What
> are my other options? How can I open a Dialog or JDialog
> (modal as much as possible) inside eclipse?
>
> I am working from the plug-in sample and trying to use the
> SWT_AWT class.
>
> Anybody's got a code snippet for me or ideas?
> I would really appreciate it!
>
> Thanks
> Nic
>
> "Nicolas Legare" <no_email_please@hotmail.com> wrote in message
> news:dc31a6$lh2$1@news.eclipse.org...
>> Hi, I've been trying to get a Dialog (or JDialog) to show modal in a
>> plugin but I can never get it to work ok, I've been searching this site
>> forever and just can't find the answer. The best I've got so far (which
>> still doesn't work well) is this:
>>
>> Frame myFrame = new Frame(); //Create a frame
>> Dialog myDialog = new Dialog(myFrame)
>>
>> Eclipse doesn't refresh properly either with this.
>>
>> Can anybody explain to me what a composite is exactly. Seems like that
>> may
>> be the answer to my problem. Does my plugin have a composite???
>>
>> Thanks
>> Nic
>>
>>
>
>
Re: Help! Dialog and SWT_AWT [message #459147 is a reply to message #459105] Tue, 02 August 2005 15:34 Go to previous message
Eclipse UserFriend
Originally posted by: no_email_please.hotmail.com

Hi Dieter,

I'm close, I traced down the problem to the fact that passing true to modal
in the JDialog constructor makes the whole thing work like crap... dunno why
that is exactly. I suppose it's some bug.

If you set that to true, everything seems to work a lot better, except that
your dialog isn't modal anymore, you can click on eclipse in the background
and type stuff.
Now someone has suggested to create a SWT modal dialog (of size 0) at the
same time and close it as the JDialog closes... I'm just about to try that.
Hopefully that'll
work good.

Nic

"Dieter Wachters" <dieter.wachters@inventivedesigners.com> wrote in message
news:dcn6mn$q4f$1@news.eclipse.org...
> Hi,
>
> I'm having the same problem. Need to show a modal Swing JDialog in my
> eclipse application, but I can't get it to work properly.
> Did you solve the problem yet?
>
> Kind regards,
>
> Dieter
>
>
> "Nicolas Legare" <no_email_please@hotmail.com> wrote in message
> news:dc61ui$usl$1@news.eclipse.org...
> > Hmmm.... still trying to figure this one out. Seems to me like this is
> > either not working properly or very tricky to get to work. What
> > are my other options? How can I open a Dialog or JDialog
> > (modal as much as possible) inside eclipse?
> >
> > I am working from the plug-in sample and trying to use the
> > SWT_AWT class.
> >
> > Anybody's got a code snippet for me or ideas?
> > I would really appreciate it!
> >
> > Thanks
> > Nic
> >
> > "Nicolas Legare" <no_email_please@hotmail.com> wrote in message
> > news:dc31a6$lh2$1@news.eclipse.org...
> >> Hi, I've been trying to get a Dialog (or JDialog) to show modal in a
> >> plugin but I can never get it to work ok, I've been searching this site
> >> forever and just can't find the answer. The best I've got so far (which
> >> still doesn't work well) is this:
> >>
> >> Frame myFrame = new Frame(); //Create a frame
> >> Dialog myDialog = new Dialog(myFrame)
> >>
> >> Eclipse doesn't refresh properly either with this.
> >>
> >> Can anybody explain to me what a composite is exactly. Seems like that
> >> may
> >> be the answer to my problem. Does my plugin have a composite???
> >>
> >> Thanks
> >> Nic
> >>
> >>
> >
> >
>
>
Previous Topic:Check in Table Editor
Next Topic:Customizing table
Goto Forum:
  


Current Time: Wed Oct 28 15:29:47 GMT 2020

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

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

Back to the top