GridData can"t be cast to FillData in PropertySection [message #508339] |
Mon, 18 January 2010 03:42  |
Eclipse User |
|
|
|
Hi,
I use Helios M4 on Ubuntu Linux 9.10
I want to customize my property view, I have created a
AbstractPropertySection where I have put a CCombo control with
"getWidgetFactory().createCCombo(parent, SWT.DROP_DOWN)"
and create a GridData :
GridData gridData = new GridData(SWT.FILL, SWT.CENTER, true, false);
and set this gridData to the previously created CCombo :
ccombo.setLayoutData(fillData);
but at runtime I have a ClassCastException at
FillLayout.computeChildSize() on my CCombo control because it try to
cast my CCombo's layoutData which is a GridData to a FillData :
FillData data = (FillData)control.getLayoutData ();
I can't replace my layout's data from GridData to a FillData because
Eclipse can't resolve this last while it is in my classpath in
org.eclipse.swt.gtk.linux.x86_3.6.0.v3624a.jar plugin under
org.eclipse.swt.layout package.
Someone can reproduce this "bug" ?
Thanks in advance.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03588 seconds