Put an embeddable frame (contained by a ViewPart) into full screen mode [message #639995] |
Thu, 18 November 2010 11:05  |
Eclipse User |
|
|
|
Hi!
I create an RCP application containing a ViewPart. This ViewPart contains a Composite (set to EMBEDDED), this Composite contains an embeddable frame created by SWT_AWT.new_Frame. This AWT frame contains a GLCanvas (the OpenGL canvas of JOGL 2, not its SWT equivalent). I would like to display only this frame in full screen mode when pressing F11.
However, if I call setFullscreen(true) on the Shell, the whole application is in full screen mode, not only this frame. The AWT parent of this frame is null and I don't find how to remove it from its SWT parent. Using setData does not allow me to do it. When I try to maximize this frame, it has no effect. If I try to use the fullscreen exclusive mode, it does not work too. I cannot call dispose() on the frame because it destroys the native resources of the OpenGL canvas too.
How can I remove an SWT component from its parent? Is dispose() the only solution?
|
|
|
|
Powered by
FUDForum. Page generated in 0.03294 seconds