focus and SWT_AWT bridge [message #467762] |
Thu, 10 May 2007 14:45 |
Pinard-Legry Guilhaume 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 |
Pinard-Legry Guilhaume 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
|
|
|
Powered by
FUDForum. Page generated in 0.03252 seconds