closeAction.setDialog( dialog );
addAction.setDialog( dialog );
addAndCopy.setDialog( dialog );
final JTextFieldFormField labelField = ( JTextFieldFormField )dialog.getFormField( AddParameterDialog.LABEL );
labelField.getComponent().setColumns( 30 );
labelField.setEnabled( false );
JComboBoxFormField nameField = ( JComboBoxFormField )dialog.getFormField( AddParameterDialog.NAME );
enablePathField( false );
nameField.addFormFieldListener( new XFormFieldListener()
{
@Override
public void valueChanged( XFormField sourceField, String newValue, String oldValue )
{
if( !newValue.equals( CHOOSE_TEST_PROPERTY ) )
{
labelField.setEnabled( true );
enablePathField( true );
}
else
{
labelField.setEnabled( false );
enablePathField( false );
}
}
} );