Skip to main content


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] Sun, 26 June 2011 02:17 Go to next message
Cristiano Gavião is currently offline Cristiano GaviãoFriend
Messages: 279
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 16:35 Go to previous messageGo to next message
Andrey Sablin is currently offline Andrey SablinFriend
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 169 times)
Re: NPE in JFace Automatic Databinding [message #690428 is a reply to message #689959] Wed, 29 June 2011 14:04 Go to previous messageGo to next message
Cristiano Gavião is currently offline Cristiano GaviãoFriend
Messages: 279
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 16:16 Go to previous message
Andrey Sablin is currently offline Andrey SablinFriend
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: Thu Apr 18 23:39:34 GMT 2024

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

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

Back to the top