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
*/
	public DataSetViewData[] getColumns( DataSetHandle dataSet, boolean refresh )
	{
		return getColumns( dataSet, refresh, true, false );
	}
	/**
	 * 
	 * @param dataSet
	 * @param refresh
	 * @param useColumnHints
	 *            Only applicable if the list is refreshed.
	 * @return
	 */
	public DataSetViewData[] getColumns( DataSetHandle dataSet,
			boolean refresh, boolean useColumnHints,
			boolean suppressErrorMessage )
	{
		if ( dataSet == null )
		{
			return new DataSetViewData[0];
		}
		DataSetViewData[] columns = null;
		try
		{
			DataSessionContext context = new DataSessionContext( DataSessionContext.MODE_DIRECT_PRESENTATION,
					dataSet.getModuleHandle( ) );
			DataRequestSession session = DataRequestSession.newSession( context );
			
			columns = (DataSetViewData[]) htColumns.get( dataSet );