Bug 315170 Refactor data set editor pages' codes[26441]
Build Identifier: 20100528 Refactor data set editor pages' codes. Reproducible: Always
UI/org.eclipse.birt.report.designer.ui.data/src/org/eclipse/birt/report/designer/data/ui/dataset/ResultSetColumnPage.java
}
		updateTable( );
		updateButtons( );
	}
	/**
	 * 
	 * @param handle
	 */
	public void saveResult( DataSetHandle handle )
	{
		PropertyHandle resultSetPropertyHandle = handle.getPropertyHandle( DataSetHandle.RESULT_SET_HINTS_PROP );
		PropertyHandle columnHintPropertyHandle = handle.getPropertyHandle( DataSetHandle.COLUMN_HINTS_PROP );
		try
		{
			
			resultSetPropertyHandle.setStringValue( null );
			ArrayList removeList = new ArrayList( );
			
			for ( Iterator iter = columnHintPropertyHandle.iterator( ); iter.hasNext( ); )
			{
				ColumnHintHandle columnHintHandle = (ColumnHintHandle) iter.next( );
				if ( !isDuplicatedName( null,
						columnHintHandle.getColumnName( ) ) )
				{
					removeList.add( columnHintHandle );
				}
			}
			
			columnHintPropertyHandle.removeItems( removeList );
			Iterator iter = columnList.iterator( );