Hello,
I'm creating a modified HTML Emitter. It seems pretty complex to develop a totally new Emitter so I would like to use the existing HTML Emitter and I could modify it.
I've created a test Emitter to check if this kind of purpose is possible or not.
- My first step was to copy the entire project and renamed it. (org.eclipse.birt.report.engine.emitter.html)
- There are three packages:
-> org.eclipse.birt.report.engine.emitter.html -> *.html5
-> org.eclipse.birt.report.engine.emitter.html.plugin -> *.html5.plugin
-> org.eclipse.birt.report.engine.emitter.html.util -> *.html5.util
I renamed all the packages as you can so. So far I don't have any errors in my project.
- I updated the path of the Activator (Overview -> Activator) in my plugin.xml
- Updated the Exported Packages
- Updated te Extension Element Details to:
class: org.eclipse.birt.report.engine.emitter.html5.HTMLReportEmitter
format: html5
id: org.eclipse.birt.report.engine.emitter.html5
- Updated the MANIFEST.MF
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: BIRT HTML Emitter
Bundle-SymbolicName: org.eclipse.birt.report.engine.emitter.html5;singleton:=true
Bundle-Version: 4.2.1.qualifier
Bundle-ClassPath: .
Bundle-Activator: org.eclipse.birt.report.engine.emitter.html5.plugin.HTMLEmitterPlugin
Bundle-Vendor: Eclipse BIRT Project
Bundle-Localization: plugin
Export-Package: org.eclipse.birt.report.engine.emitter.html5
Import-Package: org.eclipse.birt.chart.model
Require-Bundle: org.eclipse.birt.core;bundle-version="[2.1.0,5.0.0)",
org.eclipse.birt.report.model;bundle-version="[2.1.0,5.0.0)",
org.eclipse.birt.report.engine;bundle-version="[2.1.0,5.0.0)",
org.eclipse.birt.data;bundle-version="[2.1.0,5.0.0)"
Eclipse-LazyStart: true
Bundle-RequiredExecutionEnvironment: J2SE-1.5
- My plugin.xml
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>
<plugin>
<extension
point="org.eclipse.birt.report.engine.emitters"
name = "Engine html Emitters">
<emitter
id="org.eclipse.birt.report.engine.emitter.html5"
class="org.eclipse.birt.report.engine.emitter.html5.HTMLReportEmitter"
format="html5"
pagination="no-pagination"
outputDisplayNone="true"
mimeType="text/html"
supportedImageFormats="PNG;GIF;JPG;BMP;SWF;SVG" >
</emitter>
</extension>
</plugin>
- I also created a HTML5RenderOption Class:
public class HTML5RenderOption extends RenderOption{
public static final String HTML5 = "HTML5";
public HTML5RenderOption( ) {
}
}
Now when I deploy my emitter on my tomcat I get following error:

If I don't rename the packages and use the html output I get the output of my emitter but In this case I can't use the default html emitter.
Cheers.
[Updated on: Wed, 27 February 2013 11:21] by Moderator