Bug 183132 - change getMethods() to getMethods(String scriptName) in IReportItem
Summary: change getMethods() to getMethods(String scriptName) in IReportItem
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: 2.2.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 2.2.0 RC0   Edit
Assignee: Rick Lu CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 132031
  Show dependency tree
 
Reported: 2007-04-19 04:39 EDT by David Michonneau CLA
Modified: 2007-04-23 23:18 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Michonneau CLA 2007-04-19 04:39:30 EDT
The IRerportItem interface allows extended items to contribute script methods 
through getMethods(). Since those methods are in fact subfunctions of onRender, 
onPrepare, .... It is necessary to pass the script name as an argument.

So getMethods() should be change to getMethods(String scriptName) with 
scriptName = "onRender" for instance.

Alternatively extended items can contribute methods in plugin.xml, so the 
javadoc should mention it will retrieve from both, and there is no need for the 
extended item to contribute the same method in plugin.xml and 
getMethods(scriptName).
Comment 1 Rick Lu CLA 2007-04-23 23:18:28 EDT
Added getMethods(String) on IReportItem for extension elements. And deprecated the getMethods().