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
{
		PropertyHandle handle = dataSetHandle.getPropertyHandle( DataSetHandle.COMPUTED_COLUMNS_PROP );
		if ( handle != null && handle.getListValue( ) != null )
		{
			ArrayList list = handle.getListValue( );
			int count = list.size( );
			for ( int n = count - 1; n >= 0; n-- )
			{
				ComputedColumn rsColumn = (ComputedColumn) list.get( n );
				String columnName = (String) rsColumn.getName( );
				boolean found = false;
				for ( int m = 0; m < dsItemModel.length; m++ )
				{
					if ( columnName.equals( dsItemModel[m].getName( ) ) )
					{
						found = true;
						break;
					}
				}
				if ( !found )
				{
					try
					{
						
						handle.removeItem( rsColumn );
					}
					catch ( PropertyValueException e )
					{
					}
				}