Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » GridData can"t be cast to FillData in PropertySection
GridData can"t be cast to FillData in PropertySection [message #508339] Mon, 18 January 2010 08:42 Go to next message
Esteban Dugueperoux is currently offline Esteban DugueperouxFriend
Messages: 472
Registered: July 2009
Senior Member
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.
Re: GridData can"t be cast to FillData in PropertySection [message #508755 is a reply to message #508339] Wed, 20 January 2010 03:38 Go to previous message
Esteban Dugueperoux is currently offline Esteban DugueperouxFriend
Messages: 472
Registered: July 2009
Senior Member
I solved my problem by using EEF runtime, more abstraction, less errors :)
Previous Topic:Exception handling in databinding
Next Topic:Eclipse plugins don't work
Goto Forum:
  


Current Time: Wed Apr 24 23:58:23 GMT 2024

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

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

Back to the top