Bug 197505 Add Design Handle to Scriptable Objects
Currently in a report design, you can modify the design file by calling: reportContext.getReportRunnable().designHandle.getDesignHandle() Adding an object that is available by default called the DesignHandle would make this process significantly easier and more intuitive. The DesignHandle should be available at all of the same points that ReportContext is available.
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/script/internal/ReportContextImpl.java
return "";
		return MessageFormat.format( msg, params );
	}
	public String getMessage( String key, Locale locale, Object[] params )
	{
		String msg = context.getDesign( ).getMessage( key, locale );
		if ( msg == null )
			return "";
		return MessageFormat.format( msg, params );
	}
	public String getParameterDisplayText( String name )
	{
		return context.getParameterDisplayText( name );
	}
	public void setParameterDisplayText( String name, String displayText )
	{
		context.setParameterDisplayText( name, displayText );
	}
	
	public int getTaskType()
	{
		IEngineTask task = context.getEngineTask( );
		if ( task != null )
		{
			return task.getTaskType( );
		}
		return IEngineTask.TASK_UNKNOWN;
	}
}