Design a Composite problem on Linux [message #719406] |
Fri, 26 August 2011 23:56 |
|
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
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02895 seconds