Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EMF Forms] Replacing renderers
[EMF Forms] Replacing renderers [message #1282505] Wed, 02 April 2014 12:00 Go to next message
Dominik Leszyk is currently offline Dominik LeszykFriend
Messages: 22
Registered: December 2013
Junior Member
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 12:13 Go to previous messageGo to next message
Eugen Neufeld is currently offline Eugen NeufeldFriend
Messages: 63
Registered: March 2012
Member
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 14:29 Go to previous messageGo to next message
Dominik Leszyk is currently offline Dominik LeszykFriend
Messages: 22
Registered: December 2013
Junior Member
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 12:49 Go to previous message
Jonas Helming is currently offline Jonas HelmingFriend
Messages: 699
Registered: July 2009
Senior Member
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: Thu Apr 25 01:20:48 GMT 2024

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

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

Back to the top