Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » WindowBuilder » NPE in JFace Automatic Databinding
NPE in JFace Automatic Databinding [message #688866] Sat, 25 June 2011 22:17 Go to next message
Cristiano Gaviao is currently offline Cristiano Gaviao
Messages: 253
Registered: July 2009
Senior Member
Hi people,

I'm learning Jface databinding and I'm having some problems trying to binding a EMF bean using WindowBuilder (eclipse 3.7).

My EMF bean (GoalBean) is extending another two:

Parent1
- id: ELongObject

Parent2 --> Parent1
- fieldStr: EString

GoalBean --> Parent2
- myRange: EInt

I've selected JFace Automatic Databinding wizard and them selected the GoalBean as BeanClass.
In properties list I can see only the Parent2.fieldStr. why ?

If I click on "Hide/Show properties which can't be bound" button all other properties are presented. When I've selected 'id' or 'myRange' I got this:
An error has occurred. See error log for more details.
java.lang.NullPointerException

what am I missing ?

thanks

Cristiano
Re: NPE in JFace Automatic Databinding [message #689959 is a reply to message #688866] Tue, 28 June 2011 12:35 Go to previous messageGo to next message
Andrey Sablin is currently offline Andrey Sablin
Messages: 12
Registered: March 2011
Junior Member
Work for me (see attached Eclipse project).

What properties sets for EAttributes? What editors selected for bean properties?
  • Attachment: RCP-EMF.zip
    (Size: 32.64KB, Downloaded 53 times)
Re: NPE in JFace Automatic Databinding [message #690428 is a reply to message #689959] Wed, 29 June 2011 10:04 Go to previous messageGo to next message
Cristiano Gaviao is currently offline Cristiano Gaviao
Messages: 253
Registered: July 2009
Senior Member
Hi, if take a look on the image that I've posted you see that even using your model I got the same NPE.

To reproduce, just click on "Hide/Show properties which can't be bound" button and then select the 'id' attribute.

cheers
Re: NPE in JFace Automatic Databinding [message #692116 is a reply to message #690428] Sun, 03 July 2011 12:16 Go to previous message
Andrey Sablin is currently offline Andrey Sablin
Messages: 12
Registered: March 2011
Junior Member
Fixed in trunk.
Previous Topic:why windowbuilder us only unicode
Next Topic:Stackoverflow when parsing EMF
Goto Forum:
  


Current Time: Fri Aug 29 10:13:41 EDT 2014

Powered by FUDForum. Page generated in 0.15530 seconds