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
UI/org.eclipse.birt.report.designer.core/src/org/eclipse/birt/report/designer/util/FormatDateTimePattern.java
/*************************************************************************************
 * Copyright (c) 2004 Actuate Corporation and others.
 * All rights reserved. This program and the accompanying materials 
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * 
 * Contributors:
 *     Actuate Corporation - Initial implementation.
 ************************************************************************************/
package org.eclipse.birt.report.designer.util;
import org.eclipse.birt.report.model.api.elements.DesignChoiceConstants;
public class FormatDateTimePattern
{
	/**
	 * Retrieves format pattern from arrays given format type categorys.
	 * 
	 * @param category
	 *            Given format type category.
	 * @return The corresponding format pattern string.
	 */
	public static String getPatternForCategory( String category )
	{
		String pattern;
		if ( DesignChoiceConstants.DATETIEM_FORMAT_TYPE_GENERAL_DATE.equals( category ) )
		{
			pattern = "General Date"; 
		}
		else if ( DesignChoiceConstants.DATETIEM_FORMAT_TYPE_LONG_DATE.equals( category ) )
		{