NullPointerEx adding component with GroupLayout

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

NullPointerEx adding component with GroupLayout

Postby bluefox » Sun Jan 30, 2011 9:34 am

In my maven project adding a groupLayout eclipse add automatically jgoodies-form-1.3.0.jar (strange in my opinion because the code generated doesn't require this dependency). I provided this library (and beansbinding too) through maven.
In this way a was able to edit (visually resizing, anchor etc) the comboBox already in MainFrame, anyway adding a simple component like a JLabel raise this exception.
Attachments
report1157118567866804563.xml
(29.91 KiB) Downloaded 9 times
bluefox
 
Posts: 3
Joined: Sun Jan 30, 2011 9:26 am

Re: NullPointerEx adding component with GroupLayout

Postby Eric Clayberg » Sun Jan 30, 2011 11:03 am

bluefox wrote:In my maven project adding a groupLayout eclipse add automatically jgoodies-form-1.3.0.jar (strange in my opinion because the code generated doesn't require this dependency). I provided this library (and beansbinding too) through maven.

I'm not sure what you are talking about here. SWT Designer does not add JGoodies FormLayout for any purpose. JGFL is only used by Swing Designer if the user chooses that layout manager.

bluefox wrote:In this way a was able to edit (visually resizing, anchor etc) the comboBox already in MainFrame, anyway adding a simple component like a JLabel raise this exception.

The file you provided appears to be corrupted. Please use the web transaction option to submit the test case or simply post the test case here along with your complete Eclipse ".log" file.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Re: NullPointerEx adding component with GroupLayout

Postby bluefox » Mon Jan 31, 2011 4:00 pm

Sorry my mistake... I was using the Swing designer, not SWT.
Regarding the report file, (Murphy's law rules!) the web transaction option didn't worked, so I found the forum, and I've manually removed the "screenshot" attachment because the size limit. The entire test case/project "jamster.zip" seems still fine in the xml, let me know if you can't extract the file.
Tnx in advance a sorry again for the wrong place.
Fabio
bluefox
 
Posts: 3
Joined: Sun Jan 30, 2011 9:26 am

Re: NullPointerEx adding component with GroupLayout

Postby bluefox » Mon Jan 31, 2011 4:24 pm

One last thing ... the maven central repository didn't have a jgoodies-form version 1.3.0. So I've added the jar provided by eclipse, in my local repository.
Following the maven defaults (and the dependency specified by the pom.xml in the project ) it has to be copied in "$HOME/.m2/repository/jgoodies/forms/1.3.0/forms-1.3.0.jar"
bluefox
 
Posts: 3
Joined: Sun Jan 30, 2011 9:26 am

Re: NullPointerEx adding component with GroupLayout

Postby Eric Clayberg » Mon Jan 31, 2011 8:36 pm

The file you posted to the forum would not extract.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
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: Bing [Bot], Google [Bot] and 1 guest

cron