Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[birt-dev] CHECKIN: Report engine changes to support onPrepare() for both JavaScript and Java based scripting

Title: CHECKIN: Report engine changes to support onPrepare() for both _javascript_ and Java based scripting

- Summary:
Report engine changes to support onPrepare() for both _javascript_ and Java based scripting

- Bugzilla Bug (s) Resolved:
None

- Description:
This checkin implement the onPrepare() for both _javascript_ and Java based scripting. The whole process includes making a deep copy of the original design; setting up the parameters which will be used in scripting, creating the scripting context; registering “this” object; walking through the whole design tree to call onPrepare for both Java and _javascript_ code, etc. This checkin also changed various content objects to provide functions required by Java based scripting.

- Tests Description:
Unit Test:
Tested _javascript_ based scripting in onPrepare for text, label and data control. Also tested script that uses report parameters.

Tested the case where the controls are in a container.
Tested the case where both onPrepare and onCreate has _javascript_ code.

Integration tests with Petter’s code:
Tested Java based scripting in onPrepare for text and label.
Tested the case where the controls are in a container.
Tested the case where both _javascript_ and Java exist in onPrepare.

- Files Edited:
/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/content/impl/ImageContent.java
/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/content/impl/TextContent.java
/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/content/impl/CellContent.java
/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/content/impl/TableContent.java
/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/impl/RunAndRenderTask.java

- Files Added:
/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/impl/ScriptedDesignVisitor.java

- Notes to Build Team:

- Notes to Developers:

- Notes to QA: 
 
- Notes to Documentation:



Back to the top