Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
Developing Analytics Applications
Create a new Emitter with an existing Emitter - HTML
Migrateduser
Hello,<br />
<br />
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.<br />
I've created a test Emitter to check if this kind of purpose is possible or not.<br />
<br />
- My first step was to copy the entire project and renamed it. (org.eclipse.birt.report.engine.emitter.html)<br />
<br />
- There are three packages:<br />
-> org.eclipse.birt.report.engine.emitter.html -> *.html5<br />
-> org.eclipse.birt.report.engine.emitter.html.plugin -> *.html5.plugin<br />
-> org.eclipse.birt.report.engine.emitter.html.util -> *.html5.util<br />
<br />
I renamed all the packages as you can so. So far I don't have any errors in my project.<br />
- I updated the path of the Activator (Overview -> Activator) in my plugin.xml<br />
- Updated the Exported Packages<br />
- Updated te Extension Element Details to:<br />
class: org.eclipse.birt.report.engine.emitter.html5.HTMLReportEmitter<br />
format: html5<br />
id: org.eclipse.birt.report.engine.emitter.html5<br />
- Updated the MANIFEST.MF<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>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</pre>
<br />
- My plugin.xml<br />
<pre class='_prettyXprint _lang-auto _linenums:0'><?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></pre>
<br />
- I also created a HTML5RenderOption Class:<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>public class HTML5RenderOption extends RenderOption{
public static final String HTML5 = "HTML5";
public HTML5RenderOption( ) {
}
}</pre>
<br />
<br />
Now when I deploy my emitter on my tomcat I get following error:<br />
Find more posts tagged with
Comments
There are no comments yet