JSR-231 SWT Implementation development

I am getting the following error when trying to use that plugin:

eclipse.buildId=I20060223-1656
java.version=1.4.2_11
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_AU
Command-line arguments: -os win32 -ws win32 -arch x86

Warning
2006-03-25 15:20:22.468
Missing Fragment Host: org.j3d.opengl.swt

Sorry I’m a bit slow on the replies here. Brain has been elsewhere and keep forgetting to check these forums.

The way the plugin is constructed uses a host plugin and a plugin fragment for the individual per-platform bits of code. This is the same way that SWT works itself. Basically there is a very small skeleton plugin that is a placeholder for the real code. This skeleton is what other plugins refer to (you’ll see they always ask for org.eclipse.swt for example, not org.eclipse.swt.win32.win32). The Fragment then provides the real implementation without application code needing to know exactly which platform you’re on.

In your plugin loading, make sure that you specifiy org.j3d.opengl.swt as the plugin that is required in the Required-Bundles attribute. Do not have it reference the platform-specific plugin name. If you are not using the automatic update manager in Eclipse, then you need to specify both the generic host plugin and the platform-specific plugin name in your config.ini file.

Just a small note of news. I now have the Mac version running successfully. It hasn’t had much testing yet, but I can run the full set of Aviatrix3D apps over the top of it without too many issues. I’ve seen a couple of odd timing-related exception traces so those will need chasing down shortly. However, my intention is to release versions of both the SWT port for all platforms by the end of the week, and a couple of days later the first milestone release of Aviatrix3D 2.0 with SWT support as well.