Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Albireo » Invoking jface WizardDialog from Swing Action
Invoking jface WizardDialog from Swing Action [message #6745] Mon, 28 April 2008 14:59 Go to next message
javaguy44 is currently offline javaguy44Friend
Messages: 2
Registered: July 2009
Junior Member
Hi,

Good effort on albireo. Quick question. I'm looking through the alpha's
as I type this, but I don't see what I'm looking for.

I want to be able to invoke a jface Dialog from a swing action but am not
having any luck.

The higher level view is that I had a complex swing tree which I've
brought into an Eclipse view via a n EmbeddedSwingComposite. Everything
working fine. however:

1. from a node + context menu, I want to be able to invoke a jface Dialog
w/ eclipse wizard pages. I know I can bring in the swing wizard api via
Tim Bodreau / swingx, however I'd rather not bring in the extra jars if I
don't have to.

Thanks
Re: Invoking jface WizardDialog from Swing Action [message #6753 is a reply to message #6745] Mon, 28 April 2008 15:15 Go to previous messageGo to next message
Gordon Hirsch is currently offline Gordon HirschFriend
Messages: 100
Registered: July 2009
Senior Member
javaguy wrote:
>
> 1. from a node + context menu, I want to be able to invoke a jface
> Dialog w/ eclipse wizard pages.

You should be able to fire up your JFace dialog ( within a
Display.asyncExec runnable) from the Swing action's java code. Does this
not work for you? What's the error you are seeing?
Re: Invoking jface WizardDialog from Swing Action [message #6759 is a reply to message #6753] Mon, 28 April 2008 15:17 Go to previous messageGo to next message
Gordon Hirsch is currently offline Gordon HirschFriend
Messages: 100
Registered: July 2009
Senior Member
Gordon Hirsch wrote:
> javaguy wrote:
>>
>> 1. from a node + context menu, I want to be able to invoke a jface
>> Dialog w/ eclipse wizard pages.
>
> You should be able to fire up your JFace dialog ( within a
> Display.asyncExec runnable)

Doh! I should have said from within a java.awt.EventQueue.invokeLater
runnable.
Re: Invoking jface WizardDialog from Swing Action [message #6765 is a reply to message #6759] Mon, 28 April 2008 15:19 Go to previous message
Gordon Hirsch is currently offline Gordon HirschFriend
Messages: 100
Registered: July 2009
Senior Member
Gordon Hirsch wrote:
> Gordon Hirsch wrote:
>> javaguy wrote:
>>>
>>> 1. from a node + context menu, I want to be able to invoke a jface
>>> Dialog w/ eclipse wizard pages.
>>
>> You should be able to fire up your JFace dialog ( within a
>> Display.asyncExec runnable)
>
> Doh! I should have said from within a java.awt.EventQueue.invokeLater
> runnable.
>

It's a bad Monday morning, apparently. I was right the first time. Sorry.
Re: Invoking jface WizardDialog from Swing Action [message #573986 is a reply to message #6745] Mon, 28 April 2008 15:15 Go to previous message
Gordon Hirsch is currently offline Gordon HirschFriend
Messages: 100
Registered: July 2009
Senior Member
javaguy wrote:
>
> 1. from a node + context menu, I want to be able to invoke a jface
> Dialog w/ eclipse wizard pages.

You should be able to fire up your JFace dialog ( within a
Display.asyncExec runnable) from the Swing action's java code. Does this
not work for you? What's the error you are seeing?
Re: Invoking jface WizardDialog from Swing Action [message #574009 is a reply to message #6753] Mon, 28 April 2008 15:17 Go to previous message
Gordon Hirsch is currently offline Gordon HirschFriend
Messages: 100
Registered: July 2009
Senior Member
Gordon Hirsch wrote:
> javaguy wrote:
>>
>> 1. from a node + context menu, I want to be able to invoke a jface
>> Dialog w/ eclipse wizard pages.
>
> You should be able to fire up your JFace dialog ( within a
> Display.asyncExec runnable)

Doh! I should have said from within a java.awt.EventQueue.invokeLater
runnable.
Re: Invoking jface WizardDialog from Swing Action [message #574034 is a reply to message #6759] Mon, 28 April 2008 15:19 Go to previous message
Gordon Hirsch is currently offline Gordon HirschFriend
Messages: 100
Registered: July 2009
Senior Member
Gordon Hirsch wrote:
> Gordon Hirsch wrote:
>> javaguy wrote:
>>>
>>> 1. from a node + context menu, I want to be able to invoke a jface
>>> Dialog w/ eclipse wizard pages.
>>
>> You should be able to fire up your JFace dialog ( within a
>> Display.asyncExec runnable)
>
> Doh! I should have said from within a java.awt.EventQueue.invokeLater
> runnable.
>

It's a bad Monday morning, apparently. I was right the first time. Sorry.
Previous Topic:Invoking jface WizardDialog from Swing Action
Next Topic:Re: Control.setParent() under Windows
Goto Forum:
  


Current Time: Tue Sep 18 14:29:18 GMT 2018

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

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

Back to the top