How to use eclipse rcp fragments to update a plugin [message #521277] |
Wed, 17 March 2010 02:49 |
czetsuya Messages: 9 Registered: March 2010 Location: Philippines |
Junior Member |
|
|
Hi,
I've been playing about it this morning but just can't make it work.
What I did was on the same workspace, I created a helloworld project and created another project mathlibrary (it has a MyMath class and operationA method, which simply accepts 2 integer and output the sum).
Now, what I want is to create a fragment, which has MyMath project as the host plugin. I simply wanted to override the operationA method, this time it should output the product of the 2 integers.
The host plugin has this manifest:
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Math
Bundle-SymbolicName: org.demo.fragment.math
Bundle-Version: 1.0.0
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Export-Package: org.demo.fragment.math
Eclipse-ExtensibleAPI: true
Manifest of the fragment:
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Patch
Bundle-SymbolicName: org.demo.fragment.math.patch
Bundle-Version: 1.0.0
Fragment-Host: org.demo.fragment.math;bundle-version="1.0.0"
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Eclipse-PatchFragment: true
It seems the runnable application that used the host doesn't see the fragment and still it outputs the sum.
It's like this:
RunnableProject (call operationA(a, b))
->Dependent on Host Plugin (has operationA=sum(a, b)
->Patched by Fragment (operationA=product(a, b)
In my previous try (language file), I've successfully used fragments to have separate language resource like en, ja, de, etc. What I did was in the project's Run Configuration->Arguments tab I've changed the nl parameter to -nl <my language>, example -nl ja (Japanese) or -nl en (English)
Any suggestion?
[Edit]
Problem solved. Miss some items in the manifest.mf configuration
Thanks,
czetsuya
http://czetsuya-tech.blogspot.com
[Updated on: Wed, 17 March 2010 05:46] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03548 seconds