Problems Opening GEF Editor: Migration from 3.1 M6 -> 3.1.1 [message #198593] |
Wed, 12 October 2005 11:25  |
Eclipse User |
|
|
|
We just migrated to 3.1.1 from 3.1 M6 and are having trouble opening our GEF
editor. It is a multi-page editor and the stack trace seems to point to
something in SWT. We have three other multi-page editors that do not use
GEF and they open fine in 3.1.1. I am also posting this to the SWT
newsgroup.
The problem is in the SWT class FillLayout whereby a class cast exception is
thrown since the returned object is always a GridData and not a FillData
object. This exception is thrown upon attempting to open the editor and on
the selection of any tab once the editor is opened. There are no references
to our code beyond the action that invokes open editor functionality.
class org.eclipse.swt.layout.FillLayout {
Point computeChildSize (Control control, int wHint, int hHint, boolean
flushCache) {
FillData data = (FillData)control.getLayoutData (); // LINE 141
...
}
!ENTRY org.eclipse.jface 4 2 2005-10-12 09:01:49.781
!MESSAGE Problems occurred when invoking code from plug-in:
"org.eclipse.jface".
!STACK 0
java.lang.ClassCastException: org.eclipse.swt.layout.GridData
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 :213)
at org.eclipse.swt.layout.GridData.computeSize(GridData.java:47 8)
at org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:207 )
at org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:186 )
at org.eclipse.swt.widgets.Composite.updateLayout(Composite.jav a:869)
at org.eclipse.swt.widgets.Composite.WM_SIZE(Composite.java:124 8)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3107 )
at org.eclipse.swt.widgets.Display.windowProc(Display.java:3706 )
at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:1651 )
at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable .java:77)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3123 )
at org.eclipse.swt.widgets.Display.windowProc(Display.java:3706 )
at org.eclipse.swt.internal.win32.OS.SetWindowPos(Native Method)
at org.eclipse.swt.widgets.Widget.SetWindowPos(Widget.java:1140 )
at org.eclipse.swt.widgets.Control.setBounds(Control.java:1952)
at org.eclipse.swt.widgets.Control.setBounds(Control.java:1933)
at org.eclipse.swt.widgets.Control.setBounds(Control.java:1929)
at org.eclipse.swt.layout.FillLayout.layout(FillLayout.java:198 )
at org.eclipse.swt.widgets.Composite.updateLayout(Composite.jav a:869)
at org.eclipse.swt.widgets.Composite.WM_SIZE(Composite.java:124 8)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3107 )
at org.eclipse.swt.widgets.Display.windowProc(Display.java:3706 )
at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:1651 )
at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable .java:77)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3123 )
at org.eclipse.swt.widgets.Display.windowProc(Display.java:3706 )
at org.eclipse.swt.internal.win32.OS.EndDeferWindowPos(Native Method)
at org.eclipse.swt.widgets.Composite.resizeChildren(Composite.j ava:653)
at org.eclipse.swt.widgets.Composite.resizeChildren(Composite.j ava:619)
at org.eclipse.swt.widgets.Composite.setResizeChildren(Composit e.java:786)
at org.eclipse.swt.widgets.Composite.WM_SIZE(Composite.java:125 2)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3107 )
at org.eclipse.swt.widgets.Display.windowProc(Display.java:3706 )
at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:1651 )
at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable .java:77)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3123 )
at org.eclipse.swt.widgets.Display.windowProc(Display.java:3706 )
at org.eclipse.swt.internal.win32.OS.SetWindowPos(Native Method)
at org.eclipse.swt.widgets.Widget.SetWindowPos(Widget.java:1140 )
at org.eclipse.swt.widgets.Control.setBounds(Control.java:1952)
at org.eclipse.swt.widgets.Control.setBounds(Control.java:1933)
at org.eclipse.swt.widgets.Control.setBounds(Control.java:1929)
at org.eclipse.swt.layout.FillLayout.layout(FillLayout.java:198 )
at org.eclipse.swt.widgets.Composite.updateLayout(Composite.jav a:869)
at org.eclipse.swt.widgets.Composite.WM_SIZE(Composite.java:124 8)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3107 )
at org.eclipse.swt.widgets.Display.windowProc(Display.java:3706 )
at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:1651 )
at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable .java:77)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3123 )
at org.eclipse.swt.widgets.Display.windowProc(Display.java:3706 )
at org.eclipse.swt.internal.win32.OS.SetWindowPos(Native Method)
at org.eclipse.swt.widgets.Widget.SetWindowPos(Widget.java:1140 )
at org.eclipse.swt.widgets.Control.setBounds(Control.java:1952)
at org.eclipse.swt.widgets.Control.setBounds(Control.java:1933)
at org.eclipse.swt.widgets.Control.setBounds(Control.java:1929)
at org.eclipse.swt.layout.FillLayout.layout(FillLayout.java:198 )
at org.eclipse.swt.widgets.Composite.updateLayout(Composite.jav a:869)
at org.eclipse.swt.widgets.Composite.WM_SIZE(Composite.java:124 8)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3107 )
at org.eclipse.swt.widgets.Display.windowProc(Display.java:3706 )
at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:1651 )
at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable .java:77)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3123 )
at org.eclipse.swt.widgets.Display.windowProc(Display.java:3706 )
at org.eclipse.swt.internal.win32.OS.SetWindowPos(Native Method)
at org.eclipse.swt.widgets.Widget.SetWindowPos(Widget.java:1140 )
at org.eclipse.swt.widgets.Control.setBounds(Control.java:1952)
at org.eclipse.swt.widgets.Control.setBounds(Control.java:1933)
at org.eclipse.swt.widgets.Control.setBounds(Control.java:1929)
at org.eclipse.swt.widgets.Control.setBounds(Control.java:1999)
at org.eclipse.ui.internal.LayoutPart.setBounds(LayoutPart.java :299)
at
org.eclipse.ui.internal.presentations.PresentablePart.setBou nds(PresentableP
art.java:118)
at
org.eclipse.ui.internal.presentations.util.PresentablePartFo lder.layoutConte
nt(PresentablePartFolder.java:131)
at
org.eclipse.ui.internal.presentations.util.PresentablePartFo lder.layout(Pres
entablePartFolder.java:405)
at
org.eclipse.ui.internal.presentations.util.PresentablePartFo lder.select(Pres
entablePartFolder.java:289)
at
org.eclipse.ui.internal.presentations.util.LeftToRightTabOrd er.select(LeftTo
RightTabOrder.java:65)
at
org.eclipse.ui.internal.presentations.util.TabbedStackPresen tation.selectPar
t(TabbedStackPresentation.java:391)
at
org.eclipse.ui.internal.PartStack.refreshPresentationSelecti on(PartStack.jav
a:1102)
at org.eclipse.ui.internal.PartStack.setSelection(PartStack.jav a:1051)
at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:12 56)
at org.eclipse.ui.internal.PartStack.add(PartStack.java:442)
at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:109 )
at
org.eclipse.ui.internal.EditorSashContainer.addEditor(Editor SashContainer.ja
va:60)
at
org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorA reaHelper.java:2
12)
at
org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAre aHelper.java:202
)
at
org.eclipse.ui.internal.EditorManager.createEditorTab(Editor Manager.java:758
)
at
org.eclipse.ui.internal.EditorManager.openEditorFromDescript or(EditorManager
..java:665)
at org.eclipse.ui.internal.EditorManager.openEditor(EditorManag er.java:628)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.ja
va:2360)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2295
)
at org.eclipse.ui.internal.WorkbenchPage.access$9(WorkbenchPage .java:2287)
at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.ja va:2273)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2268)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2249)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:371)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:334)
at org.eclipse.ui.actions.OpenFileAction.openFile(OpenFileActio n.java:98)
at
org.eclipse.ui.actions.OpenSystemEditorAction.run(OpenSystem EditorAction.jav
a:98)
at
com.eyeris.eyeprofit.ui.core.views.navigator.EPOpenActionGro up.runDefaultAct
ion(EPOpenActionGroup.java:109)
|
|
|
|
|
Re: Problems Opening GEF Editor: Migration from 3.1 M6 -> 3.1.1 [message #198683 is a reply to message #198641] |
Wed, 12 October 2005 11:57  |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
It would be great if you moved to 3.1.0 first, and then moved to 3.1.1.
There should be *NO* breaking changes between 3.1.0 and 3.1.1, anywhere.
Whereas if you find breaking stuff between M6 and something later, that's a
normal part of the release development cycle. You'll still get help, but
they probably aren't "bugs".
"Paul Wuethrich" <paul.wuethrich@eye-ris.com> wrote in message
news:dijb59$3s9$1@news.eclipse.org...
> Thanks Randy, I just found it! That took care of that problem but we
> still
> have other issues, I'll post again if we can't resolve them.
>
|
|
|
Powered by
FUDForum. Page generated in 0.03624 seconds