Bug 324070 Refactor data set editor pages' codes[30967]
Build Identifier: 20100828 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
else
				{
					items[i].setAnalysis( getDefaultAnalysisType( items[i].getName( ),
							items[i].getDataTypeName( ),
							null ) );
					items[i].setAnalysisColumn( null );
				}
			}
		}
		updateModel( dataSetHandle, items );
		return items;
	}
	public String getDefaultAnalysisType( String columnName, String dataType,
			String originalAnalysis )
	{
		String defaultAnalysisType = null;
		if ( !this.needToFocusOnOutput )
			return originalAnalysis;
		if ( originalAnalysis != null )
			return originalAnalysis;
		if ( dataType.equals( DesignChoiceConstants.COLUMN_DATA_TYPE_INTEGER )
				|| dataType.equals( DesignChoiceConstants.COLUMN_DATA_TYPE_FLOAT )
				|| dataType.equals( DesignChoiceConstants.COLUMN_DATA_TYPE_DECIMAL ) )
		{
			defaultAnalysisType = DesignChoiceConstants.ANALYSIS_TYPE_MEASURE;
		}
		else if ( dataType.equals( DesignChoiceConstants.COLUMN_DATA_TYPE_STRING ) )
		{
			defaultAnalysisType = DesignChoiceConstants.ANALYSIS_TYPE_ATTRIBUTE;
		}