Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Jface databinding for extended ecore models [solved]
Jface databinding for extended ecore models [solved] [message #1650011] Wed, 04 March 2015 16:16 Go to next message
Alexander Klatt is currently offline Alexander KlattFriend
Messages: 59
Registered: April 2014
Member
Hello,

I have got two ecore models:
- A
- B (extended from A)

For jface viewers, there is a great way to get automatic databinding from the model
to the viewer by using a content provider which extends AdapterFactoryContentProvider.

This works great for my ecore model A.
But I cannot get it to work for my model B. If I use the ItemProviderAdapterFactory
from model A, any change to the extended fields in B is not recognized. If I use the
ItemProviderAdapterFactory from model B, the content is incomplete.

Is there any way to get jface databinding to work for extended ecore models?

[Updated on: Thu, 05 March 2015 14:45]

Report message to a moderator

Re: Jface databinding for extended ecore models [message #1650921 is a reply to message #1650011] Thu, 05 March 2015 03:19 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30458
Registered: July 2009
Senior Member
Alexander,

Are you creating the underlying adapter factory using new
ComposedAdapterFactory(ComposedAdapterFactory.Descriptor.Registry.INSTANCE)?
This should automatically find the model-specific item provider adapter
factory for A and B.


On 04/03/2015 5:16 PM, Alexander Klatt wrote:
> Hello,
>
> I have got two ecore models:
> - A
> - B (extended from A)
>
> For jface viewers, there is a great way to get automatic databinding
> from the model to the viewer by using a content provider which extends
> AdapterFactoryContentProvider.
>
> This works great for my ecore model A.
> But I cannot get it to work for my model B. If I use the
> ItemProviderAdapterFactory from model A, any change to the extended
> fields in B is not recognized. If I use the ItemProviderAdapterFactory
> from model B, the content is incomplete.
>
> Is there any way to get jface databinding to work for extended ecore
> models?
Re: Jface databinding for extended ecore models [message #1651215 is a reply to message #1650921] Thu, 05 March 2015 07:10 Go to previous message
Alexander Klatt is currently offline Alexander KlattFriend
Messages: 59
Registered: April 2014
Member
Yes, this works. Thank you!
Previous Topic:Java Sun/Oracle xerces parser bug?
Next Topic:Two editors with different editing domain
Goto Forum:
  


Current Time: Sat Sep 21 15:25:29 GMT 2019

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

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

Back to the top