Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Deploying to different platforms
Deploying to different platforms [message #461617] Sat, 13 January 2007 15:53 Go to next message
Eclipse UserFriend
Originally posted by: danderer.gmail.com

I'm building an RCP app. There is a little platform-dependent code in
it. (There are some swt.ole.win32 classes in one corner of the app.)

It is fine if the non-Windows versions of the app don't have that
functionality. But from a build perspective how is this typically
handled?

My current thought is to split the platform-specific code into its own
plugin, and have two version of that plugin. And create different
features incorporating the appropriate plugin version.

Is there a better way?
Re: Deploying to different platforms [message #461634 is a reply to message #461617] Mon, 15 January 2007 00:02 Go to previous message
Eclipse UserFriend
You can also create a single plugin, and then develop a fragments for each of the platform-specific code. That way, the standard loader figures out which one to use without you having to do anything.

Plugin: org.example.foo
Fragment: org.example.foo.win32
Fragment: org.example.foo.linux (etc)

Then the plugin just contains the platform-neutral code, whilst the fragments are actually contributing the platform bindings. Of course, you can use stuff from the fragments indirectly; e.g. having an interface in the plugin with your specific code, and then implementations of that interface (e.g. cached in a global variable) that your platform neutral code can use.

Alex.
Previous Topic:How to add additional CoolBar?
Next Topic:ClassLoader Problem (ClassCastException)?
Goto Forum:
  


Current Time: Wed Mar 26 11:46:01 EDT 2025

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

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

Back to the top