Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Patching a third party bundle with fragment
Patching a third party bundle with fragment [message #666785] Fri, 22 April 2011 14:57 Go to next message
Jan Krakora is currently offline Jan Krakora
Messages: 477
Registered: December 2009
Location: Prague
Senior Member
Hi,

I'm trying to patch the BIRT's org.eclipse.birt.report.engine.emitter.pdf plugin following this article http://wiki.eclipse.org/Steps_to_use_Fragments_to_patch_a_plug-in. But I can't success. Is it still supported in the Eclipse 3.5.2 anymore?
Below are those 2 manifests.

org.eclipse.birt.report.engine.emitter.pdf plugin:
Manifest-Version: 1.0
Bundle-Localization: plugin
Bundle-RequiredExecutionEnvironment: J2SE-1.5
Eclipse-LazyStart: true
Bundle-SymbolicName: org.eclipse.birt.report.engine.emitter.pdf; singl
 eton:=true
Require-Bundle: org.eclipse.birt.core;bundle-version="[2.1.0,3.0.0)",o
 rg.eclipse.birt.report.model;bundle-version="[2.1.0,3.0.0)",org.eclip
 se.birt.report.engine;bundle-version="[2.1.0,3.0.0)",org.eclipse.birt
 .report.engine.fonts;bundle-version="[2.1.0,3.0.0)",com.lowagie.text;
 bundle-version="[1.3.0,3.0.0)",org.apache.batik.transcoder;bundle-ver
 sion="[1.6.0,2.0.0)"
Bundle-Activator: org.eclipse.birt.report.engine.emitter.pdf.plugin.PD
 FEmitterPlugin
Bundle-Version: 2.6.1.v20100909
Bundle-ClassPath: library.jar,.
Bundle-Vendor: Eclipse.org
Bundle-Name: BIRT PDF emitter
Eclipse-ExtensibleAPI: true
Import-Package: com.ibm.icu.util;version="[3.4.4,5.0.0)"
Bundle-ManifestVersion: 2

Name: .options
SHA1-Digest: kTFq9YK3hsAG66i0F5jehfm8jt8=

Name: org/eclipse/birt/report/engine/emitter/pdf/plugin/PDFEmitterPlug
 in.class
SHA1-Digest: pXqjSdmR3ulAJcnlPHE0xn/oTBk=

Name: META-INF/eclipse.inf
SHA1-Digest: KyT9FF7C7t86NoBoa2kZT3ZJBfw=

Name: org/eclipse/birt/report/engine/emitter/pdf/PDFPage.class
SHA1-Digest: zfFEBFMRMYOMYTqFuujUL4qXU7M=

Name: org/eclipse/birt/report/engine/emitter/pdf/PDFEmitter.class
SHA1-Digest: BGlRigjymqcZGr4qSNbTuopFlBk=

Name: plugin.xml
SHA1-Digest: GCKgvCgv06dEIjh+wiUiODQ9CT4=

Name: about.html
SHA1-Digest: ObsP47Fq6CSfBimdpGOcNnxQyPA=

Name: org/eclipse/birt/report/engine/emitter/pdf/PDFPageDevice.class
SHA1-Digest: Xa728B2zt8X/t1FBJlM4QKfsIdw=

Name: org/eclipse/birt/report/engine/emitter/pdf/TOCHandler.class
SHA1-Digest: YiOUSXBPOPz9I296WfReSwrkjYg=

Name: org/eclipse/birt/report/engine/emitter/pdf/PDFRender.class
SHA1-Digest: AjwZsl7YqSID5kuLLc9gxcxrplE=

Name: org/eclipse/birt/report/engine/emitter/pdf/PDFPage$TplValueTripl
 e.class
SHA1-Digest: gch3LJYcnJgZA5tfBglnhGLK7Lk=


My fragment with patch:
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Fragment
Bundle-SymbolicName: org.eclipse.birt.engine.emitter.pdf.fragment
Bundle-Version: 1.0.0.qualifier
Fragment-Host: org.eclipse.birt.report.engine.emitter.pdf;bundle-version="2.6.1"
Bundle-RequiredExecutionEnvironment: J2SE-1.5
Eclipse-PatchFragment: true

Any advice?
Re: Patching a third party bundle with fragment [message #666994 is a reply to message #666785] Mon, 25 April 2011 12:06 Go to previous messageGo to next message
Paul Webster is currently offline Paul Webster
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

On 04/22/2011 10:57 AM, Behnil wrote:
> Hi,
>
> I'm trying to patch the BIRT's
> org.eclipse.birt.report.engine.emitter.pdf plugin following this article
> http://wiki.eclipse.org/Steps_to_use_Fragments_to_patch_a_pl ug-in But I
> can't success. Is it still supported in the Eclipse 3.5.2 anymore?


> My fragment with patch:
>
> Manifest-Version: 1.0
> Bundle-ManifestVersion: 2
> Bundle-Name: Fragment
> Bundle-SymbolicName: org.eclipse.birt.engine.emitter.pdf.fragment
> Bundle-Version: 1.0.0.qualifier
> Fragment-Host:
> org.eclipse.birt.report.engine.emitter.pdf;bundle-version="2.6.1 "
> Bundle-RequiredExecutionEnvironment: J2SE-1.5
> Eclipse-PatchFragment: true

Your fragment MANIFEST.MF is not complete ... you still need follow the
rest of the steps on your link, like step #15

PW


--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Platform_Expression_Framework
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/workbench.htm


Re: Patching a third party bundle with fragment [message #667158 is a reply to message #666994] Wed, 27 April 2011 07:16 Go to previous messageGo to next message
Jan Krakora is currently offline Jan Krakora
Messages: 477
Registered: December 2009
Location: Prague
Senior Member
I did it, but still without success. I'm trying the same approach with my own plugin and it's working. So I guess, the problem is somewhere in the BIRT's plugin. Is it OK that the BIRT's bundle is signed?
Re: Patching a third party bundle with fragment [message #667163 is a reply to message #667158] Wed, 27 April 2011 07:47 Go to previous message
Jan Krakora is currently offline Jan Krakora
Messages: 477
Registered: December 2009
Location: Prague
Senior Member
My fragment's manifest looks like this:

Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Fragment
Bundle-SymbolicName: org.eclipse.birt.report.engine.emitter.pdf.fragment
Bundle-Version: 1.0.0.qualifier
Fragment-Host: org.eclipse.birt.report.engine.emitter.pdf;bundle-version="2.6.1 "
Bundle-RequiredExecutionEnvironment: J2SE-1.5
Eclipse-PatchFragment: true
Bundle-ClassPath: library.jar,
.
Previous Topic:How to sync radio-menuitems with the toolbar
Next Topic:Adding menu item to Project Explorer's drop down menu
Goto Forum:
  


Current Time: Mon Sep 15 09:35:07 GMT 2014

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

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