WindowBuilder internal error

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

WindowBuilder internal error

Postby aschilling » Thu Apr 16, 2009 10:44 pm


we updated to the new version of WB (7.0) as it now features a lot of things we use daily. however, we encountered that it's not able to open nearly any of our dialogs in our application anymore, most of them because of a NullPointerException. The cause is easy to spot: most of our dialogs access logic from our business layer, which is a different plugin. So retrieving objects from the business layer of course returns NULL (as the plugin does not exist when WB parses the gui code) and calling any methods from them results in the NPE.
The older versions didn't have this kind of problem, it seemed to accept just everything except for some really rare cases where it also wasn't able to parse the code.
Any ideas on how to solve this issue? It's really important for us, because at the moment we can not use the new version at all, which is a pity as it looks really, really promising.

best regards,

Posts: 3
Joined: Thu Apr 16, 2009 10:20 pm

Re: WindowBuilder internal error

Postby Eric Clayberg » Fri Apr 17, 2009 4:14 am

The the NPE triggered in the code for the dialog or for a custom component used in the dialog?

Does a null check or Beans.isDesignTime() check fix it?

It would really help to see an actual test case here.
Eric Clayberg
Software Engineering Manager

Author: "Eclipse Plug-ins"
Eric Clayberg
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Return to SWT Designer

Who is online

Users browsing this forum: No registered users and 2 guests