Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Changes in SashForm from M6 to M7?
Changes in SashForm from M6 to M7? [message #456215] Thu, 26 May 2005 16:19 Go to next message
Philippe Marschall is currently offline Philippe MarschallFriend
Messages: 121
Registered: July 2009
Senior Member
Hi

Did there happen any changes in SashForm from M6 to M7 that one needs to
be aware of? The reason I ask is because with M7 Azureus stopped working
(it still does with M6).

I'm not entirely sure the problem is in SashForm, it's just my
impression from the stack trace below.

It looks like someone is using GridData for a FillLayout.


java.lang.ClassCastException: org.eclipse.swt.layout.GridData cannot be
cast to org.eclipse.swt.layout.FillData
at org.eclipse.swt.layout.FillLayout.computeChildSize(FillLayou t.java:141)
at org.eclipse.swt.layout.FillLayout.computeSize(FillLayout.jav a:119)
at org.eclipse.swt.widgets.Composite.computeSize(Composite.java :190)
at
org.eclipse.swt.custom.SashFormLayout.computeSize(SashFormLa yout.java:39)
at org.eclipse.swt.widgets.Composite.computeSize(Composite.java :190)
at
org.eclipse.swt.custom.CTabFolderLayout.computeSize(CTabFold erLayout.java:53)
at org.eclipse.swt.widgets.Composite.computeSize(Composite.java :190)
at org.eclipse.swt.layout.FormData.computeSize(FormData.java:11 3)
at org.eclipse.swt.layout.FormLayout.layout(FormLayout.java:318 )
at org.eclipse.swt.layout.FormLayout.layout(FormLayout.java:284 )
at org.eclipse.swt.widgets.Composite.updateLayout(Composite.jav a:1128)
at org.eclipse.swt.widgets.Shell.resizeBounds(Shell.java:1027)
at org.eclipse.swt.widgets.Shell.gtk_size_allocate(Shell.java:8 32)
at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1358)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:3331 )
at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Na tive Method)
at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS. java:1139)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2473)
at org.gudy.azureus2.ui.swt.mainwindow.SWTThread.<init>(SWTThread.java:114)
at
org.gudy.azureus2.ui.swt.mainwindow.SWTThread.createInstance (SWTThread.java:58)
at
org.gudy.azureus2.ui.swt.mainwindow.Initializer.<init>(Initializer.java:107)
at org.gudy.azureus2.ui.swt.Main.<init>(Main.java:71)
at org.gudy.azureus2.ui.swt.Main.main(Main.java:98)


Thanks
Philippe
Re: Changes in SashForm from M6 to M7? [message #456224 is a reply to message #456215] Thu, 26 May 2005 20:16 Go to previous message
Benjamin Pasero is currently offline Benjamin PaseroFriend
Messages: 337
Registered: July 2009
Senior Member
Philippe Marschall wrote:

>Hi
>
>
Hi Philippe,

>Did there happen any changes in SashForm from M6 to M7 that one needs to
>be aware of? The reason I ask is because with M7 Azureus stopped working
>(it still does with M6).
>
>
I had similiar problems after updating to newer SWT versions for cases where
is was wrongly using a GridData in a FillLayout. Make sure that in any case
the Layout of the Parent matches the LayoutData of all Childs.

Ben

>I'm not entirely sure the problem is in SashForm, it's just my
>impression from the stack trace below.
>
>It looks like someone is using GridData for a FillLayout.
>
>
> java.lang.ClassCastException: org.eclipse.swt.layout.GridData cannot be
>cast to org.eclipse.swt.layout.FillData
> at org.eclipse.swt.layout.FillLayout.computeChildSize(FillLayou t.java:141)
> at org.eclipse.swt.layout.FillLayout.computeSize(FillLayout.jav a:119)
> at org.eclipse.swt.widgets.Composite.computeSize(Composite.java :190)
> at
> org.eclipse.swt.custom.SashFormLayout.computeSize(SashFormLa yout.java:39)
> at org.eclipse.swt.widgets.Composite.computeSize(Composite.java :190)
> at
> org.eclipse.swt.custom.CTabFolderLayout.computeSize(CTabFold erLayout.java:53)
> at org.eclipse.swt.widgets.Composite.computeSize(Composite.java :190)
> at org.eclipse.swt.layout.FormData.computeSize(FormData.java:11 3)
> at org.eclipse.swt.layout.FormLayout.layout(FormLayout.java:318 )
> at org.eclipse.swt.layout.FormLayout.layout(FormLayout.java:284 )
> at org.eclipse.swt.widgets.Composite.updateLayout(Composite.jav a:1128)
> at org.eclipse.swt.widgets.Shell.resizeBounds(Shell.java:1027)
> at org.eclipse.swt.widgets.Shell.gtk_size_allocate(Shell.java:8 32)
> at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1358)
> at org.eclipse.swt.widgets.Display.windowProc(Display.java:3331 )
> at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Na tive Method)
> at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS. java:1139)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2473)
> at org.gudy.azureus2.ui.swt.mainwindow.SWTThread.<init>(SWTThread.java:114)
> at
> org.gudy.azureus2.ui.swt.mainwindow.SWTThread.createInstance (SWTThread.java:58)
> at
>org.gudy.azureus2.ui.swt.mainwindow.Initializer.<init>(Initializer.java:107)
> at org.gudy.azureus2.ui.swt.Main.<init>(Main.java:71)
> at org.gudy.azureus2.ui.swt.Main.main(Main.java:98)
>
>
>Thanks
>Philippe
>
>
Previous Topic:SWT-Table column setup
Next Topic:Image capturing
Goto Forum:
  


Current Time: Fri Apr 19 21:03:23 GMT 2024

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

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

Back to the top