Bug 322347 Refactor data set editor pages' codes[29949]
Build Identifier: 20100810 Refactor data set editor pages' codes. Reproducible: Always
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/data/ui/util/DataSetProvider.java
if ( result == null )
		{
			DataRequestSession session;
			try
			{
				DataSessionContext context = new DataSessionContext( DataSessionContext.MODE_DIRECT_PRESENTATION,
						ds.getModuleHandle( ) );
				session = DataRequestSession.newSession( context );
				result = this.populateAllOutputColumns( ds, session );
				session.shutdown( );
				return result;
			}
			catch ( BirtException e )
			{
				result = new DataSetViewData[0];
			}
		}
		return result;
	}
	/**
	 * @param dataSetType
	 * @param dataSourceType
	 * @return
	 */
	public static IConfigurationElement findDataSetElement( String dataSetType,
			String dataSourceType )
	{
		
		IConfigurationElement dataSourceElem = findDataSourceElement( dataSourceType );
		if ( dataSourceElem != null )