Bug 316568 Refactor data set editor pages' codes[26849]
Build Identifier: 20100610 Refactor data set editor pages' codes. Reproducible: Always
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/data/ui/util/Utility.java
{
		return getDesignElementFactory( ).newOdaDataSource( name, type );
	}
    
    /**
     * new script data source handle
     * 
     * @param name
     * @return
     */
    public static ScriptDataSourceHandle newScriptDataSource( String name )
	{
		return getDesignElementFactory( ).newScriptDataSource( name );
	}
	
    /**
	 * set script editor page active The id must be same with
	 * ReportScriptFormPage.ID
	 */
	public static void setScriptActivityEditor( )
	{
		final String SCRIPT_EDITOR_ID = "org.eclipse.birt.report.designer.ui.editors.script"; 
		if ( UIUtil.getActiveReportEditor( ).findPage( SCRIPT_EDITOR_ID ) != null ) 
		{
			UIUtil.getActiveReportEditor( ).setActivePage( SCRIPT_EDITOR_ID );
		}
	}
    
    /**
     *