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
}
    
    /**
     * get design element factory
     * 
     * @return
     */
    public static DesignElementFactory getDesignElementFactory( )
	{
		DesignElementFactory factory = DesignElementFactory.getInstance( HandleAdapterFactory.getInstance( )
				.getReportDesignHandleAdapter( )
				.getModuleHandle( )
				.getDataSets( )
				.getElementHandle( )
				.getModuleHandle( ) );
		return factory;
	}
    
    /**
     * new oda data set handle
     * 
     * @param name
     * @param type
     * @return
     */
    public static OdaDataSetHandle newOdaDataSet( String name, String type )
	{
		return getDesignElementFactory( ).newOdaDataSet( name, type );
	}