String pattern = category; if ( category == null ) { pattern = ""; } else if ( DesignChoiceConstants.DATETIEM_FORMAT_TYPE_GENERAL_DATE .equals( category ) )
String pattern; if ( DesignChoiceConstants.DATETIEM_FORMAT_TYPE_GENERAL_DATE.equals( category ) )
	protected String getPatternForCategory( String category )	{		String pattern = category;		if ( category == null )		{			pattern = ""; //$NON-NLS-1$		}		else if ( DesignChoiceConstants.DATETIEM_FORMAT_TYPE_GENERAL_DATE				.equals( category ) )		{			pattern = "General Date"; //$NON-NLS-1$		}		else if ( DesignChoiceConstants.DATETIEM_FORMAT_TYPE_LONG_DATE				.equals( category ) )		{			pattern = "Long Date"; //$NON-NLS-1$		}		else if ( DesignChoiceConstants.DATETIEM_FORMAT_TYPE_MUDIUM_DATE				.equals( category ) )		{			pattern = "Medium Date"; //$NON-NLS-1$		}		else if ( DesignChoiceConstants.DATETIEM_FORMAT_TYPE_SHORT_DATE				.equals( category ) )		{			pattern = "Short Date"; //$NON-NLS-1$		}		else if ( DesignChoiceConstants.DATETIEM_FORMAT_TYPE_LONG_TIME				.equals( category ) )		{			pattern = "Long Time"; //$NON-NLS-1$		}		else if ( DesignChoiceConstants.DATETIEM_FORMAT_TYPE_MEDIUM_TIME				.equals( category ) )		{			pattern = "Medium Time"; //$NON-NLS-1$		}		else if ( DesignChoiceConstants.DATETIEM_FORMAT_TYPE_SHORT_TIME				.equals( category ) )		{			pattern = "Short Time"; //$NON-NLS-1$		}		else		{			// default, unformatted.			pattern = ""; //$NON-NLS-1$		}		return pattern;	}