|How do i define and use my own renderer? [message #502716]
||Wed, 09 December 2009 09:28
| Jens Keller
Registered: December 2009
Location: Leipzig, Germany
i'm trying to define my own renderer for the indiviual elements of the workbench model.
I looked into the org.eclipse.e4.ui.workbench.renderers.swt package and played a bit with the existing renderers. Like changing the CTabFolder created in the StackRenderer or including the ribbon toolbar (from Hexapixel) in the WBWRenderer and that worked fine. So i thought to change the renderer i can implement my own by extending the SWTPartRenderer and define this one as default.
But how to i define that my own renderer should be used for a specific workbench model element. I saw that a model element has a Factory- & Widget-feature but i don't know how to use it. The same with the org.eclipse.e4.workbench.rendererfactory extension point.
Is this the right way at all or is there a better solution?
Thanks in advance for your help.
Powered by FUDForum
. Page generated in 0.02424 seconds