|
|
|
Re: How to have single sourcing ? [message #1015699 is a reply to message #1015548] |
Fri, 01 March 2013 19:40 |
Paul Bilnoski Messages: 28 Registered: August 2010 |
Junior Member |
|
|
Something our shop has used with some success are "shim" bundles that expose the functionality and namespace of the org.eclipse.ui bundles, but by reexporting the org.eclipse.rap.ui bundles. The problem with using package imports, as we would prefer, with the org.eclipse.ui namespace is that they have packages split across several bundles, so bundle import is the only clean option.
The concept of these shims is to make an empty bundle (no sources) with reexported dependencies, i.e. only a manifest and build.properties. These reexport RAP 1.5 as eclipse 3.7, so if you are using other versions take care to map them properly.
By dropping these shim bundles in your target platform, the dependencies should resolve properly to RAP. Keep in mind you may need to rebuild the code to ensure all API dependencies are met, since RAP is not an exact replacement and might not be binary-compatible with bundles built against the true org.eclipse.ui bundles.
Here are two example bundle manifest files:
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Eclipse RAP UI Proxy
Bundle-SymbolicName: org.eclipse.ui
Bundle-Version: 3.7.0.qualifier
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Require-Bundle: org.eclipse.rap.ui;bundle-version="1.5.0";visibility:=reexport,
org.eclipse.swt;bundle-version="3.7.0";visibility:=reexport,
org.eclipse.jface;bundle-version="3.7.0";visibility:=reexport,
org.eclipse.ui.workbench;bundle-version="3.7.0";visibility:=reexport
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Eclipse RAP Workbench Proxy
Bundle-SymbolicName: org.eclipse.ui.workbench
Bundle-Version: 3.7.0.qualifier
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Require-Bundle: org.eclipse.rap.ui.workbench;bundle-version="1.5.0";visibility:=reexport,
org.eclipse.swt;bundle-version="3.7.0";visibility:=reexport
--Paul
|
|
|
Powered by
FUDForum. Page generated in 0.03301 seconds