Bug 180645 Support set format for Date/Time type parameter.[0705]
Description: Support set format for Date/Time type parameter. Build number:2.2.0.v200704031345 Steps to reproduce: 1. New a Date report parameter. 2. Click Change... button to set format for it. Expected result: Can set format for Date/Time parameter. Actual result: Change... button is disabled. Error log:N/A
core/org.eclipse.birt.core/src/org/eclipse/birt/core/format/DateFormatter.java
{
		String formatCode = null;
		if ( formatPattern.equals( "General Date" ) )
		{
			SimpleDateFormat dateFormat = (SimpleDateFormat) SimpleDateFormat.getDateTimeInstance( com.ibm.icu.text.DateFormat.LONG,
					com.ibm.icu.text.DateFormat.LONG,
					locale );
			formatCode = dateFormat.toPattern( );
		}
		if ( formatPattern.equals( "Long Date" ) )
		{
			SimpleDateFormat dateFormat = (SimpleDateFormat) SimpleDateFormat.getDateInstance( com.ibm.icu.text.DateFormat.LONG,
					locale );
			formatCode = dateFormat.toPattern( );
		}
		if ( formatPattern.equals( "Medium Date" ) )
		{
			SimpleDateFormat dateFormat = (SimpleDateFormat) SimpleDateFormat.getDateInstance( com.ibm.icu.text.DateFormat.MEDIUM,
					locale );
			formatCode = dateFormat.toPattern( );
		}
		if ( formatPattern.equals( "Short Date" ) )
		{
			SimpleDateFormat dateFormat = (SimpleDateFormat) SimpleDateFormat.getDateInstance( com.ibm.icu.text.DateFormat.SHORT,
					locale );
			formatCode = dateFormat.toPattern( );
		}
		if ( formatPattern.equals( "Long Time" ) )
		{
			SimpleDateFormat dateFormat = (SimpleDateFormat) SimpleDateFormat.getTimeInstance( com.ibm.icu.text.DateFormat.LONG,