EMF databinding with changed interface name pattern problem

SWT Designer allows you to create the views, editors, perspectives, pref pages, composites, etc. that comprise Eclipse SWT & RCP applications and plug-ins.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

EMF databinding with changed interface name pattern problem

Postby coud » Sun Mar 13, 2011 11:04 am


I have problem with EMF data binding to view. When I create ecore model, genmodel and view, everything works fine.

EMF binding without interface name pattern change
emf-binding-ok.JPG (46.49 KiB) Viewed 291 times

Problem arises when I change property "Interface Name Pattern" in genmodel. This property sets names of generated
interfaces (when set to "I{0}" generated interface has name e.g. "IPerson" instead of "Person").
Properties of model interfaces generated from this genmodel are not recognized in visual binding designer.

EMF binding missing
emf-binding-missing.JPG (52.99 KiB) Viewed 291 times

Am I missing some setting of the binding designer ?

I'm using Eclipse 3.6 with WindowBuilder 0.9.0

Thanks :)
emf binding project with changed interface name pattern
(12.13 KiB) Downloaded 15 times
Posts: 1
Joined: Sun Mar 13, 2011 5:44 am

Re: EMF databinding with changed interface name pattern prob

Postby asablin » Sun Mar 20, 2011 2:23 am

See myPackage.IMyPackagePackage and his inner interface Literals.
It defines literals for the meta object Person (EClass PERSON) and his attribute Name (EAttribute PERSON__NAME).
Need to reconfigure the model so that were generated meta objects for IPerson.
Posts: 19
Joined: Thu Sep 23, 2010 3:07 am

Return to SWT Designer

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 1 guest