Bug 322346 Refactor data set editor pages' codes[29803]
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
{
			defaultAnalysisType = DesignChoiceConstants.ANALYSIS_TYPE_ATTRIBUTE;
		}
		else if ( dataType.equals( DesignChoiceConstants.COLUMN_DATA_TYPE_TIME )
				|| dataType.equals( DesignChoiceConstants.COLUMN_DATA_TYPE_DATE )
				|| dataType.equals( DesignChoiceConstants.COLUMN_DATA_TYPE_DATETIME ) )
		{
			defaultAnalysisType = DesignChoiceConstants.ANALYSIS_TYPE_DIMENSION;
		}
		if ( columnName.length( ) >= 3 )
		{
			String lastThreeLetters = columnName.substring( columnName.length( ) - 3 );
			if ( lastThreeLetters.equalsIgnoreCase( "key" ) )
			{
				defaultAnalysisType = DesignChoiceConstants.ANALYSIS_TYPE_DIMENSION;
			}
		}
		if ( columnName.length( ) >= 2 )
		{
			String lastTwoLetters = columnName.substring( columnName.length( ) - 2 );
			if ( lastTwoLetters.equalsIgnoreCase( "id" ) )
			{
				defaultAnalysisType = DesignChoiceConstants.ANALYSIS_TYPE_DIMENSION;
			}
		}
		return defaultAnalysisType;
	}
	/**
	 * get Cached metadata
	 *