choices[choices.length - 2] = DISPLAY_NAME_CONTROL_COMBO;
choices[choices.length - 2] = DISPLAY_NAME_CONTROL_LIST;
	private boolean buildControlTypeList( String type )	{		String[] choices;		if ( isStatic( ) )		{			if ( DesignChoiceConstants.PARAM_TYPE_BOOLEAN.equals( type ) )			{				choices = new String[3];			}			else			{				choices = new String[4];			}		}		else		{			choices = new String[2];		}		if ( controlTypeChooser.getItemCount( ) != choices.length )		{			String originalSelection = controlTypeChooser.getText( );			if ( isStatic( ) )			{				if ( DesignChoiceConstants.PARAM_TYPE_BOOLEAN.equals( type ) )				{					choices[0] = CONTROL_TYPE_CHOICE_SET.findChoice( DesignChoiceConstants.PARAM_CONTROL_CHECK_BOX )							.getDisplayName( );				}				else				{					choices[0] = CONTROL_TYPE_CHOICE_SET.findChoice( DesignChoiceConstants.PARAM_CONTROL_TEXT_BOX )							.getDisplayName( );					choices[1] = DISPLAY_NAME_CONTROL_LIST;				}				choices[choices.length - 2] = DISPLAY_NAME_CONTROL_COMBO;				choices[choices.length - 1] = CONTROL_TYPE_CHOICE_SET.findChoice( DesignChoiceConstants.PARAM_CONTROL_RADIO_BUTTON )						.getDisplayName( );			}			else			{				choices[0] = DISPLAY_NAME_CONTROL_COMBO;				choices[1] = DISPLAY_NAME_CONTROL_LIST;			}			controlTypeChooser.setItems( choices );			if ( originalSelection.length( ) == 0 )			{// initialize				controlTypeChooser.setText( getInputControlDisplayName( ) );			}			else			{				int index = controlTypeChooser.indexOf( originalSelection );				if ( index == -1 )				{// The original control type cannot be					// supported					controlTypeChooser.select( 0 );					return true;				}				controlTypeChooser.setText( originalSelection );			}		}		return false;	}