Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [emf-dev] Allowing custom property editors

Hi,

I also opened an issue [1] in bugzilla.

Jens

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=438123

On 06/18/2014 04:59 PM, Jens Reimann wrote:
> Hi,
>
> I just stumbled over the issue again that I would like to have a custom
> property editor for the EMF generated editors. However this seems to be
> a bigger task. Either one has to replace a lot of generated classes or
> use some other toolset like EEF.
>
> I think there is way to do this with EMF.Edit and started performing the
> changes in our own project, Eclipse SCADA. However I would like to see
> the changes become part of EMF, if possible.
>
> As far as I have figured it out, the basic problem is, that
> AdapterFactoryContentProvider creates the actual IPropertySource
> instance, which is derived from a IItemPropertyDescriptor. This process
> takes place in PropertyDescriptor.createPropertyEditor(...). However
> there seems to be no extensible way to intercept this process and inject
> a custom property editor.
>
> I started with a small patch in gerrit [1] which basically allows other
> adapters to join in when the conversion from "Object" to
> "IPropertySource" takes place. This would be a first step to allow
> others to inject custom property editors, if needed. Otherwise the
> default process takes place.
>
> This could also be done in a custom implementation on a per project
> (editor) base. However if you have a bigger set or models and extension
> models. This would mean that all editors have to use this extended
> version of AdapterFactoryContentProvider. If one editor implementation
> still uses the default implementation, then the whole process would be
> broken for a extending model.
>
> Please let me know what you think.
>
> Jens Reimann
>
> [1] https://git.eclipse.org/r/#/c/28689/
> _______________________________________________
> emf-dev mailing list
> emf-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/emf-dev


-- 
IBH SYSTEMS GmbH
D-85235 Pfaffenhofen an der Glonn
Läutenring 43
Geschäftsführer / CEO: Dr. Thomas Heitzig

Amtsgericht München
Handelsregister Nummer  HRB 197959
USt ID: DE267945175

Office Munich
D 80992 München
Agnes-Pockels-Bogen 1
T +49 89 18 9 17 49 0

The information transmitted is intended only for the person or entity
to which it is addressed and may contain confidential and/or pivileged
material. Any review, retransmission, dissemination or other use of,
or taking of any action in reliance upon, this information by persons
or entities other than the intended recipient is prohibited. If you
received this in error, please contact the sender and delete the
material from any computer.



Back to the top