Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Big Problem !!!!
Big Problem !!!! [message #437876] Thu, 06 October 2005 12:05 Go to next message
Eclipse UserFriend
Originally posted by: gkurien.icope.com

hi,

when i open a view using 'window.getActivePage().showView("viewID");'
and then i try to resize the window i get an error

Unhandled event loop exception
Reason:
org.eclipse.ui.internal.layout.TrimLayoutData

how do i correct this ?

Thanxs in advance.
Re: Big Problem !!!! [message #437878 is a reply to message #437876] Thu, 06 October 2005 12:37 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Genu George wrote:
> hi,
>
> when i open a view using 'window.getActivePage().showView("viewID");'
> and then i try to resize the window i get an error
> Unhandled event loop exception
> Reason:
> org.eclipse.ui.internal.layout.TrimLayoutData
> how do i correct this ?
>
> Thanxs in advance.
>

Please gather up as much information as you have (what exactly you were
doing, any code that was executed, your .log file) and open a bug
https://bugs.eclipse.org/bugs/enter_bug.cgi against Platform/UI

Later,
PW


Re: Big Problem !!!! [message #437880 is a reply to message #437878] Thu, 06 October 2005 13:46 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: gkurien.icope.com

hi,

i have View in the plugin.xml file.. i have a perspective but i have not
written any piece of code in the createInitialLayout(IPageLayout ) except
for layout.setEditorAreaVisible( false); i use dialog box to create
dynamically a ViewPart by calling the show(viewId ) . if i resize the
workbench before calling the show() method , i dont get any problem with
the layout ..i mean if there are other viewPart present and i resize , all
the views in it get resized accordingly but once i open a view using the
show method , the view opens properly and also get displayed well but if i
resize the workbench this time i get the error ...i dont know if thats
good enough explaination . this is the log file i get .


!SESSION 2005-10-06 19:20:22.458
-----------------------------------------------
eclipse.buildId=unknown
java.version=1.5.0_04
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments: -product XLS_Work.product -pdelaunch
Command-line arguments: -product XLS_Work.product -data
D:\MyFolder\E-WorkSpace\runtime-workspace -dev
file:D:/MyFolder/E-WorkSpace/DAO-WS/.metadata/.plugins/org.e clipse.pde.core/DAO_RCP/dev.properties
-pdelaunch -os win32 -ws win32 -arch x86

!ENTRY org.eclipse.ui 4 4 2005-10-06 19:20:42.336
!MESSAGE Unhandled event loop exception

!ENTRY org.eclipse.ui 4 0 2005-10-06 19:20:42.346
!MESSAGE org.eclipse.ui.internal.layout.TrimLayoutData
!STACK 0
java.lang.ClassCastException: org.eclipse.ui.internal.layout.TrimLayoutData
at org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:197 )
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.Canvas.WM_SIZE(Canvas.java:253)
at org.eclipse.swt.widgets.Decorations.WM_SIZE(Decorations.java :1761)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3107 )
at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.j ava:1582)
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.Shell.callWindowProc(Shell.java:410)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3123 )
at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.j ava:1582)
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.Shell.callWindowProc(Shell.java:410)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3123 )
at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.j ava:1582)
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.Shell.callWindowProc(Shell.java:410)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3123 )
at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.j ava:1582)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:3706 )
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:16 56)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2711)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1699)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:367)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
at xLS_Work.intro.Application.run(Application.java:18)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:226)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)
Re: Big Problem !!!! [message #437883 is a reply to message #437880] Thu, 06 October 2005 15:42 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

What's the bug number?

PW


Re: Big Problem !!!! [message #437884 is a reply to message #437880] Thu, 06 October 2005 18:02 Go to previous message
Haris Peco is currently offline Haris PecoFriend
Messages: 1072
Registered: July 2009
Senior Member
You have set non GridData (TrimLayoutData) to GridLayout in your view
- this was possible before 3.1 eclipse

If view is from eclipse (any eclipse view) then it is bug in eclipse

Genu George wrote:

> hi,
>
> i have View in the plugin.xml file.. i have a perspective but i have not
> written any piece of code in the createInitialLayout(IPageLayout ) except
> for layout.setEditorAreaVisible( false); i use dialog box to create
> dynamically a ViewPart by calling the show(viewId ) . if i resize the
> workbench before calling the show() method , i dont get any problem with
> the layout ..i mean if there are other viewPart present and i resize , all
> the views in it get resized accordingly but once i open a view using the
> show method , the view opens properly and also get displayed well but if i
> resize the workbench this time i get the error ...i dont know if thats
> good enough explaination . this is the log file i get .
>
>
> !SESSION 2005-10-06 19:20:22.458
> -----------------------------------------------
> eclipse.buildId=unknown
> java.version=1.5.0_04
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
> Framework arguments: -product XLS_Work.product -pdelaunch
> Command-line arguments: -product XLS_Work.product -data
> D:\MyFolder\E-WorkSpace\runtime-workspace -dev
>
file:D:/MyFolder/E-WorkSpace/DAO-WS/.metadata/.plugins/org.e clipse.pde.core/DAO_RCP/dev.properties
> -pdelaunch -os win32 -ws win32 -arch x86
>
> !ENTRY org.eclipse.ui 4 4 2005-10-06 19:20:42.336
> !MESSAGE Unhandled event loop exception
>
> !ENTRY org.eclipse.ui 4 0 2005-10-06 19:20:42.346
> !MESSAGE org.eclipse.ui.internal.layout.TrimLayoutData
> !STACK 0
> java.lang.ClassCastException:
> org.eclipse.ui.internal.layout.TrimLayoutData at
> org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:197 ) 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.Canvas.WM_SIZE(Canvas.java:253) at
> org.eclipse.swt.widgets.Decorations.WM_SIZE(Decorations.java :1761) at
> org.eclipse.swt.widgets.Control.windowProc(Control.java:3107 ) at
> org.eclipse.swt.widgets.Decorations.windowProc(Decorations.j ava:1582) 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.Shell.callWindowProc(Shell.java:410) at
> org.eclipse.swt.widgets.Control.windowProc(Control.java:3123 ) at
> org.eclipse.swt.widgets.Decorations.windowProc(Decorations.j ava:1582) 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.Shell.callWindowProc(Shell.java:410) at
> org.eclipse.swt.widgets.Control.windowProc(Control.java:3123 ) at
> org.eclipse.swt.widgets.Decorations.windowProc(Decorations.j ava:1582) 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.Shell.callWindowProc(Shell.java:410) at
> org.eclipse.swt.widgets.Control.windowProc(Control.java:3123 ) at
> org.eclipse.swt.widgets.Decorations.windowProc(Decorations.j ava:1582) at
> org.eclipse.swt.widgets.Display.windowProc(Display.java:3706 ) at
> org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method) at
> org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:16 56) at
> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2711) at
> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1699) at
> org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663) at
>
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:367)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
> at xLS_Work.intro.Application.run(Application.java:18)
> at
>
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:226)
> at
>
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
> at
>
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334 )
> at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
> at org.eclipse.core.launcher.Main.run(Main.java:973)
> at org.eclipse.core.launcher.Main.main(Main.java:948)
Previous Topic:Export problem: classes are not exported when something in classpath
Next Topic:Opening a message with an attachment in the default e-mail client from RCP application
Goto Forum:
  


Current Time: Thu Dec 26 19:43:14 GMT 2024

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

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

Back to the top