|
Re: Separate part focus and activation during keyboard navigation [message #1852714 is a reply to message #1852708] |
Thu, 02 June 2022 06:28 |
Rolf Theunissen Messages: 260 Registered: April 2012 |
Senior Member |
|
|
I don't have the answer for you right away. But, to validate that it would be possible, you should:
- Check if the SWT widget supports this behavior. That is, validate that the CTabfolder supports this, e.g., take one of these examples https://www.eclipse.org/swt/snippets/#ctabfolder; If it doesn't support it, you could request this feature on the SWT widget https://github.com/eclipse-platform/eclipse.platform.swt
- If the SWT widget supports this behavior and your Eclipse E4 RCP doesn't: This is most likely the result of the RenderingEngine. E4 supports customizing the rendering engine, even for specific parts. The default renderer for the MPartStack is https://github.com/eclipse-platform/eclipse.platform.ui/blob/master/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/StackRenderer.java which extends https://github.com/eclipse-platform/eclipse.platform.ui/blob/master/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/LazyStackRenderer.java the method showTab() makes that the tab contents shows up. You would want to look into the handling of the event UIEvents.ElementContainer.TOPIC_SELECTEDELEMENT, which is registered in the init section. But, without digging through the source, I am not sure how you can distinguish between the selection and the activation of the tab in E4.
|
|
|
Powered by
FUDForum. Page generated in 0.02428 seconds