Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SWT_AWT bridge: Can I register Swing Events for SWT widgets?
SWT_AWT bridge: Can I register Swing Events for SWT widgets? [message #459388] Mon, 08 August 2005 16:35 Go to next message
Bob is currently offline BobFriend
Messages: 44
Registered: July 2009
Member
Hello everybody,

i am using the SWT_AWT bridge to include a graph drawing library in my
Eclipse Plugin.

I want to accompany this graph view with a Properties view, showing
details of the nodes in the Graph, when a node in the Graph gets clicked
onto by the user.

Is this possible?

IŽve only found examples where a swing frame is embedded into SWT but none
of the Examples showed whether itŽs possible to execute code based on
certain events within the Swing widget.

Any answer is appreciated.

Cheers
Bob
Re: SWT_AWT bridge: Can I register Swing Events for SWT widgets? [message #459595 is a reply to message #459388] Thu, 11 August 2005 22:21 Go to previous messageGo to next message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
Why wouldn't this work (provided you call both SWT and Swing from the
"right" thread using asyncExec() and invokeLater())?

"Bob" <bobruney@gmx.net> wrote in message
news:5a12ecd5d4776d887478c1616bde656b$1@www.eclipse.org...
> Hello everybody,
>
> i am using the SWT_AWT bridge to include a graph drawing library in my
> Eclipse Plugin.
>
> I want to accompany this graph view with a Properties view, showing
> details of the nodes in the Graph, when a node in the Graph gets clicked
> onto by the user.
>
> Is this possible?
>
> I
Re: SWT_AWT bridge: Can I register Swing Events for SWT widgets? [message #459602 is a reply to message #459388] Fri, 12 August 2005 07:27 Go to previous message
Stefan Langer is currently offline Stefan LangerFriend
Messages: 236
Registered: July 2009
Senior Member
In case there is no direct way try using pipes to communicate between
the two threads.

HTH
Stefan

Bob wrote:
> Hello everybody,
>
> i am using the SWT_AWT bridge to include a graph drawing library in my
> Eclipse Plugin.
>
> I want to accompany this graph view with a Properties view, showing
> details of the nodes in the Graph, when a node in the Graph gets clicked
> onto by the user.
>
> Is this possible?
>
> IŽve only found examples where a swing frame is embedded into SWT but
> none of the Examples showed whether itŽs possible to execute code based
> on certain events within the Swing widget.
>
> Any answer is appreciated.
>
> Cheers
> Bob
>
Previous Topic:Select all
Next Topic:Looking for a widget to pick an int
Goto Forum:
  


Current Time: Sun Apr 18 22:10:40 GMT 2021

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

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

Back to the top