Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » focus and SWT_AWT bridge
focus and SWT_AWT bridge [message #467762] Thu, 10 May 2007 14:45 Go to next message
Pinard-Legry Guilhaume is currently offline Pinard-Legry GuilhaumeFriend
Messages: 11
Registered: July 2009
Junior Member
Hi all,

I implemented 3 StructuredViewer:
- a pure SWT one containing a Table (1),
- one containing a JTable and using the native SWT_AWT bridge (2)
- one containing a JTree and using the native SWT_AWT bridge (3)

With (1), when an element of the Table has the focus, and the viewer loses
it, if you click on the viewpart Notebook tab, then the previously
selected element gets the focus back, and you can navigate in the Table
with keyboard arrows.

In order to have the same behavior with (2) and (3), I implemented several
org.eclipse.swt.events.FocusListener to force the focus on the previously
swing selected elements. I had no success.

Can somebody tell how I can achieve this ?


Regards,

Guilhaume
Re: focus and SWT_AWT bridge [message #467824 is a reply to message #467762] Fri, 11 May 2007 07:51 Go to previous message
Pinard-Legry Guilhaume is currently offline Pinard-Legry GuilhaumeFriend
Messages: 11
Registered: July 2009
Junior Member
Hi all,


Does somebody has any idea about that?
I am quite stuck with that


Thanks


Guilhaume

> Hi all,

> I implemented 3 StructuredViewer:
> - a pure SWT one containing a Table (1),
> - one containing a JTable and using the native SWT_AWT bridge (2)
> - one containing a JTree and using the native SWT_AWT bridge (3)

> With (1), when an element of the Table has the focus, and the viewer loses
> it, if you click on the viewpart Notebook tab, then the previously
> selected element gets the focus back, and you can navigate in the Table
> with keyboard arrows.

> In order to have the same behavior with (2) and (3), I implemented several
> org.eclipse.swt.events.FocusListener to force the focus on the previously
> swing selected elements. I had no success.

> Can somebody tell how I can achieve this ?


> Regards,

> Guilhaume
Previous Topic:Accelerator key to the Action
Next Topic:Add / Hide Views programmatically
Goto Forum:
  


Current Time: Thu Apr 25 13:19:07 GMT 2024

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

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

Back to the top