DelegatingWrapperItemProvider : how change the order of the properties [message #1412538] |
Tue, 26 August 2014 08:02  |
Eclipse User |
|
|
|
Hello
i work on a editor (which extend EcoreEditor).
I need to display in a certain order the properties of the selected object (of the tree editor.)
This order should be computed with some information (eAnnotations) which are stored in the ecore model.
Unfortunatly, i cannot get the descriptor from the PropertySheetEntry. Do you know how could i get it ?
The other alternative would be to directly get the DynamicEObjectImpl but the selected object is a org.eclipse.emf.edit.provider.DelegatingWrapperItemProvider
and i do not know how to get the corresponding DynamicEObjectImpl. Do you know how to solve that problem ?
thank you in advance
Philippe
|
|
|
|
|
Re: DelegatingWrapperItemProvider : how change the order of the properties [message #1412641 is a reply to message #1412618] |
Tue, 26 August 2014 13:21  |
Eclipse User |
|
|
|
Philippe,
Comments below.
On 26/08/2014 6:04 PM, Philippe Favrais wrote:
> Thanks Ed,
> Yes, you are right, i am working with a dynamic model and using the
> reflective editor.
> From my specialized PropertySource.getPropertyDescriptors(), to be
> able to change the order of IPropertyDescriptor[],
> i need to read the eAnnotations (having the order information) of the
> DynamicEObjectImpl. However, the objects are of type
> DelegatingWrapperItemProvider and not DynamicEObjectImpl.
You can always unwrap things:
org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain.unwrap(Object)
> And i do not know how to access this information ?
> Philippe
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.11185 seconds