Skip to main content



      Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EMF Forms] Replacing renderers
[EMF Forms] Replacing renderers [message #1282505] Wed, 02 April 2014 08:00 Go to next message
Eclipse UserFriend
Hi All,

I am trying to replace renderer for 'org.eclipse.emf.ecp.view.spi.model.VControl'. I've created new plugin and configured extension point like below:

<plugin>
   <extension
         point="org.eclipse.emf.ecp.ui.view.swt.renderers">
      <renderer
            element="org.eclipse.emf.ecp.view.spi.model.VControl"
            renderer="org.leszyk.simple.groupgrid.swt.SWTControlRenderer">
      </renderer>
   </extension>


However it doesn't work. When debugging in SWTRendererFactory I see clearly that my renderer is discovered and initialized before the one provided by ECP itself. As they are stored in hashmap, the one provided by me is effectively replaced by this provided by ECP. It seems that in the renderer extention point I can't use staticTest and priorities section (as it is with control). Any hints?

Thank You!
Dominik
Re: [EMF Forms] Replacing renderers [message #1284387 is a reply to message #1282505] Fri, 04 April 2014 08:13 Go to previous messageGo to next message
Eclipse UserFriend
Hi Dominik,
In order to replace an existing renderer you have to use this extension point: org.eclipse.emf.ecp.ui.view.swt.customSWTRenderers

Custom Renderers are always used before the "normal" renderers.

In Version 1.3 on which we are currently working, we added tester with priorities to renderer. This way you will be able to control which renderer to replace very accurate, just like controls.

Cheers,
Eugen
Re: [EMF Forms] Replacing renderers [message #1297242 is a reply to message #1284387] Tue, 15 April 2014 10:29 Go to previous messageGo to next message
Eclipse UserFriend
Hi Eugen,

Thanks for reply.

We're using version 1.2 and it seems that the features you're describing doesn't exist anymore. I mean that extension point org.eclipse.emf.ecp.ui.view.swt.customSWTRenderers does exist but there is nowhere a code that would process it. However such code exists in version 1.1.1 in SWTRenderer class (AFAIR). Unfortunately it's not possible for us to downgrade:) We will wait for 1.3 and support of priorities in renderers.

Cheers,
Dominik
Re: [EMF Forms] Replacing renderers [message #1298708 is a reply to message #1297242] Wed, 16 April 2014 08:49 Go to previous message
Eclipse UserFriend
Hi,

Eugen is on Holidays fo tqo weeks, he will get back to you, once he is
back..
Best regards

Jonas

Am 15.04.2014 16:29, schrieb Dominik Leszyk:
> Hi Eugen,
>
> Thanks for reply.
> We're using version 1.2 and it seems that the features you're describing
> doesn't exist anymore. I mean that extension point
> org.eclipse.emf.ecp.ui.view.swt.customSWTRenderers does exist but there
> is nowhere a code that would process it. However such code exists in
> version 1.1.1 in SWTRenderer class (AFAIR). Unfortunately it's not
> possible for us to downgrade:) We will wait for 1.3 and support of
> priorities in renderers.
>
> Cheers,
> Dominik
Previous Topic:[EMF Forms] Receive notifications of rendered form
Next Topic:ECP Validation not working if running as part of Kepler Workbench
Goto Forum:
  


Current Time: Tue Jul 15 04:54:37 EDT 2025

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

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

Back to the top