Created attachment 406 [details]
Screenhot and testcase.
The NewtCanvasSWT ignores the windowing offset when inside a SWT SashForm. See the attaced screenshot and snippet. Window offset seem to work with the JOGAMP SWT GLCanvas.
The problem only seems to relate to OSX. I've successfully tested the snippet on linux.
Verion used are JOGL RC11, SWT 3.100.1, JDK7u11, OSX 10.8.2, Macbook 15'' Retina.
The topic is discussed in the thread
Bug 672 (NewtCanvasSWT ignore windowing offset on OSX').
The NewtCanvasSWT is now brought into place by the parent SWT Composite
and the super SWT Canvas it extends. Also added two test cases. One with
a simple SashForm and the NewtCanvasSWT in the second cell, and another
with the NewtCanvasSWT in a Composite, that Composite now in the second
cell of the SashForm. The second test is necessary because the
NewtCanvasSWT does not receive SWT.Resize events in this configuration,
but only SWT.Paint ones (a behaviour inherited from the super SWT
- Reuse SWTAccessor.isOS_TYPE (public now)
- Impl NW.getLocationOnScreen(..) for X11 and Windows reusing existing native code
- Allow unit test to run on all platforms.