Bug 212450 Expose Report Theme for scripting
Use case: Report library: theme.rptlibrary has 2 themes blue and green based on blue.css and green.css. Report design: theme.rptdesign uses theme.rptlibrary. there is a report parameter: theme that allows the user to select blue or green for the report theme. Using scripting, I want to be able to set the theme of the report based on the report parameter. In the script tab, the 'this' variable does not have theme exposed. Desired action: please expose theme to the report.
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/script/internal/element/ReportDesign.java
public String getDisplayNameKey( )
	{
		return ( (org.eclipse.birt.report.model.api.simpleapi.IReportDesign) designElementImpl )
				.getDisplayNameKey( );
	}
	public void setDisplayName( String displayName ) throws ScriptException
	{
		try
		{
			( (org.eclipse.birt.report.model.api.simpleapi.IReportDesign) designElementImpl )
					.setDisplayName( displayName );
		}
		catch ( SemanticException e )
		{
			throw new ScriptException( e.getLocalizedMessage( ) );
		}
	}
	public String getDisplayName( )
	{
		return ( (org.eclipse.birt.report.model.api.simpleapi.IReportDesign) designElementImpl )
				.getDisplayName( );
	}
	public IMasterPage getMasterPage( String name )
	{
		return new MasterPage(
				( (org.eclipse.birt.report.model.api.simpleapi.IReportDesign) designElementImpl )
						.getMasterPage( name ) );
	}
}