|Re: [EEF] Open references listed in the generated editor. [message #724976 is a reply to message #722619]
||Tue, 13 September 2011 15:59
Originally posted by: |
Comments below :
Le 06/09/2011 12:50, Thomas Muller a écrit :
> Using EEF, I gererated an editor (Element Editor) for some references.
> These references appear in the TableViewer in the generated
> (CompositePropertiesEditionPart)s of a dedicated view (there are
> MyPropertiesEditionPartImpl,and the MyPropertiesEditionPartForm).
> I want to open the elements listed in the TableViewer in an appropriate
> To do so, I found the solution to add an IOpenListener to the
> tableViewer, but this implies to modify the EEF generated code (this
> sounds pretty bad, and painful at re-generation).
> Is there a better way to do this ?
you have 2 solutions.
the first one is to overrides the generated code by your code if
possible. You just need to change the provider used by EEF to do so.
you can create your own PropertiesEditionPartProvider that overrides the
generated one, then overrides the getPropertiesEditionPart method to
insert a test that will return your own PropertiesEditionPartImpl and
PropertiesEditionPartForm. Finally, your dedicated classes needs to
overrides the create() methods that creates the table viewer.
the second option is to overrides dynamically the acceleo templates to
insert your code at the right place.
> Thanks per advance.
Stéphane Bouchet, OBEO
Powered by FUDForum
. Page generated in 0.17062 seconds