Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » WindowBuilder » Design a Composite problem on Linux(New Composite, Error in Design mode)
Design a Composite problem on Linux [message #719406] Fri, 26 August 2011 23:56 Go to next message
Hekmatof  is currently offline Hekmatof Friend
Messages: 5
Registered: August 2011
Location: Iran/Tehran
Junior Member

Hi
When I Add a new Composite from: New->Other ->WindowsBuilder ->SWT Designer ->SWT ->Composite
it creates a new Coposite but when I go to the Design Tab I get this Error:

Exception during 'super' constructor evaluation

An exception happened during evaluation of constructor Composite(Composite,int) using arguments {<null>,0}.

java.lang.IllegalArgumentException: Argument cannot be null
	at org.eclipse.swt.SWT.error(Unknown Source)
	at org.eclipse.swt.SWT.error(Unknown Source)
	at org.eclipse.swt.SWT.error(Unknown Source)
	at org.eclipse.swt.widgets.Widget.error(Unknown Source)
	at org.eclipse.swt.widgets.Widget.checkParent(Unknown Source)
        ...


I check the code automatically generated:
	public AddBookComp(Composite parent, int style) {
		super(parent, style);

	}

I changed them over and over, for example I try this one:
 super(new shell(new Display(),SWT.NONE),SWT.NONE); 

but the error still the same. how can I Use Design Tab to Design e Customized Composite?

in addition I use: Archlinux(x86_64), Kernel 3.0.3, KDE 4.7, Eclipse Indigo

[Updated on: Sat, 27 August 2011 00:01]

Report message to a moderator

Re: Design a Composite problem on Linux [message #719410 is a reply to message #719406] Sat, 27 August 2011 00:38 Go to previous messageGo to next message
Eric Clayberg is currently offline Eric ClaybergFriend
Messages: 979
Registered: July 2009
Location: Boston, MA
Senior Member
I tried that and it worked just fine.

Please provide a complete test case and stack trace.
Re: Design a Composite problem on Linux [message #719412 is a reply to message #719410] Sat, 27 August 2011 00:51 Go to previous messageGo to next message
Hekmatof  is currently offline Hekmatof Friend
Messages: 5
Registered: August 2011
Location: Iran/Tehran
Junior Member

I create a report using eclipse, where can I upload it?
Re: Design a Composite problem on Linux [message #719422 is a reply to message #719412] Sat, 27 August 2011 03:16 Go to previous messageGo to next message
Eric Clayberg is currently offline Eric ClaybergFriend
Messages: 979
Registered: July 2009
Location: Boston, MA
Senior Member
Bugzilla (Tools > WindowBuilder)
Re: Design a Composite problem on Linux [message #719431 is a reply to message #719422] Sat, 27 August 2011 05:38 Go to previous messageGo to next message
Hekmatof  is currently offline Hekmatof Friend
Messages: 5
Registered: August 2011
Location: Iran/Tehran
Junior Member

I File a new bug here : bugs.eclipse.org/bugs/show_bug.cgi?id=355995
Re: Design a Composite problem on Linux [message #719516 is a reply to message #719431] Sat, 27 August 2011 15:23 Go to previous message
Konstantin Scheglov is currently offline Konstantin ScheglovFriend
Messages: 555
Registered: July 2009
Senior Member
Answered in bug report.

Konstantin Scheglov,
Google, Inc.
Previous Topic:combobox.selectedindex always returns 0
Next Topic:Swing Designer: Parse Exception with component inheritance
Goto Forum:
  


Current Time: Fri Apr 26 03:21:09 GMT 2024

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

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

Back to the top