public void setItems( String[] items ) { wCombo.setItems( items ); }
public void setItems( String[] items ) { wCombo.setItems( items ); }
protected void setLocales() { Locale[] locale = Locale.getAvailableLocales(); dateLocale = new String[locale.length]; for ( int i = 0; i < locale.length; i++ ) { dateLocale[i] = locale[i].toString(); } if ( dateLocale != null ) { wDateLocale.setItems( dateLocale ); } }
protected void setLocales() { Locale[] locale = Locale.getAvailableLocales(); dateLocale = new String[locale.length]; for ( int i = 0; i < locale.length; i++ ) { dateLocale[i] = locale[i].toString(); } if ( dateLocale != null ) { wDateLocale.setItems( dateLocale ); } }
protected CCombo addStandardSelect( String labelMessageKey, Control prevControl, String[] choices ) { int vertPad = verticalPadding; Label label = addStandardLabel( labelMessageKey, prevControl ); verticalPadding = vertPad; CCombo combo = new CCombo( shell, SWT.BORDER ); combo.setItems( choices ); combo.addModifyListener( lsMod ); combo.setLayoutData( standardInputSpacing( prevControl, label ) ); return combo; }
protected CCombo addStandardSelect( String labelMessageKey, Control prevControl, String[] choices ) { int vertPad = verticalPadding; addStandardLabel( labelMessageKey, prevControl ); verticalPadding = vertPad; CCombo combo = new CCombo( shell, SWT.BORDER ); combo.setItems( choices ); combo.addModifyListener( lsMod ); combo.setLayoutData( standardInputSpacing( prevControl ) ); return combo; }
private void loadComboOptions() { try { String fieldvalue = null; if ( inputFieldControl.getText() != null ) { fieldvalue = inputFieldControl.getText(); } RowMetaInterface r = transMeta.getPrevStepFields( stepname ); if ( r != null ) { inputFieldControl.setItems( r.getFieldNames() ); } if ( fieldvalue != null ) { inputFieldControl.setText( fieldvalue ); } } catch ( KettleException ke ) { new ErrorDialog( shell, BaseMessages.getString( PKG, "NumberRange.TypeLongDesc" ), "Can't get fields", ke ); } }
private void getFieldsList() { try { String selectedField = wUpsertField.getText(); wUpsertField.removeAll(); wUpsertField.setItems( getModuleFields() ); if ( !Utils.isEmpty( selectedField ) ) { wUpsertField.setText( selectedField ); } } catch ( Exception e ) { new ErrorDialog( shell, BaseMessages.getString( PKG, "SalesforceUpsertDialog.ErrorRetrieveModules.DialogTitle" ), BaseMessages.getString( PKG, "SalesforceUpsertDialog.ErrorRetrieveData.ErrorRetrieveModules" ), e ); } }
private void getFields() { if ( !gotPreviousFields ) { try { String field = wDatefield.getText(); RowMetaInterface r = transMeta.getPrevStepFields( stepname ); if ( r != null ) { wDatefield.setItems( r.getFieldNames() ); } if ( field != null ) { wDatefield.setText( field ); } } catch ( KettleException ke ) { new ErrorDialog( shell, BaseMessages.getString( PKG, "DimensionLookupDialog.ErrorGettingFields.Title" ), BaseMessages .getString( PKG, "DimensionLookupDialog.ErrorGettingFields.Message" ), ke ); } gotPreviousFields = true; } }
private void getFields() { if ( !gotPreviousFields ) { try { String field = wSplitfield.getText(); RowMetaInterface r = transMeta.getPrevStepFields( stepname ); if ( r != null ) { wSplitfield.setItems( r.getFieldNames() ); } if ( field != null ) { wSplitfield.setText( field ); } } catch ( KettleException ke ) { new ErrorDialog( shell, BaseMessages.getString( PKG, "FieldSplitterDialog.FailedToGetFields.DialogTitle" ), BaseMessages.getString( PKG, "FieldSplitterDialog.FailedToGetFields.DialogMessage" ), ke ); } gotPreviousFields = true; } }
private void getFields() { if ( !gotPreviousFields ) { try { String field = wField.getText(); RowMetaInterface r = transMeta.getPrevStepFields( stepname ); if ( r != null ) { wField.setItems( r.getFieldNames() ); } if ( field != null ) { wField.setText( field ); } } catch ( KettleException ke ) { new ErrorDialog( shell, BaseMessages.getString( PKG, "FlattenerDialog.FailedToGetFields.DialogTitle" ), BaseMessages .getString( PKG, "FlattenerDialog.FailedToGetFields.DialogMessage" ), ke ); } gotPreviousFields = true; } }
private void setFieldname() { try { String field = wMessage.getText(); wMessage.removeAll(); RowMetaInterface r = transMeta.getPrevStepFields( stepname ); wMessage.setItems( r.getFieldNames() ); if ( field != null ) { wMessage.setText( field ); } } catch ( KettleException ke ) { new ErrorDialog( shell, BaseMessages.getString( PKG, "SymmetricCryptoTransDialog.FailedToGetFields.DialogTitle" ), BaseMessages.getString( PKG, "SymmetricCryptoTransDialogMod.FailedToGetFields.DialogMessage" ), ke ); } }
private void setSourceStreamField() { try { String value = wFieldValue.getText(); wFieldValue.removeAll(); RowMetaInterface r = transMeta.getPrevStepFields( stepname ); if ( r != null ) { wFieldValue.setItems( r.getFieldNames() ); } if ( value != null ) { wFieldValue.setText( value ); } } catch ( KettleException ke ) { new ErrorDialog( shell, BaseMessages.getString( PKG, "JsonInputDialog.FailedToGetFields.DialogTitle" ), BaseMessages.getString( PKG, "JsonInputDialog.FailedToGetFields.DialogMessage" ), ke ); } }
private void setSourceStreamField() { try { String value = cbSourceField.getText(); cbSourceField.removeAll(); RowMetaInterface r = transMeta.getPrevStepFields( stepname ); if ( r != null ) { cbSourceField.setItems( r.getFieldNames() ); } if ( value != null ) { cbSourceField.setText( value ); } } catch ( KettleException ke ) { new ErrorDialog( shell, BaseMessages.getString( PKG, "XMLInputStreamDialog.FailedToGetFields.DialogTitle" ), BaseMessages.getString( PKG, "XMLInputStreamDialog.FailedToGetFields.DialogMessage" ), ke ); } }
private void setSecretKeyFieldname() { try { String field = wSecretKeyField.getText(); wSecretKeyField.removeAll(); RowMetaInterface r = transMeta.getPrevStepFields( stepname ); if ( r != null ) { wSecretKeyField.setItems( r.getFieldNames() ); } if ( field != null ) { wSecretKeyField.setText( field ); } } catch ( KettleException ke ) { new ErrorDialog( shell, BaseMessages.getString( PKG, "SymmetricCryptoTransDialog.FailedToGetFields.DialogTitle" ), BaseMessages.getString( PKG, "SymmetricCryptoTransDialogMod.FailedToGetFields.DialogMessage" ), ke ); } }
private void get() { if ( !gotPreviousFields ) { gotPreviousFields = true; try { String source = wMessageField.getText(); wMessageField.removeAll(); RowMetaInterface r = transMeta.getPrevStepFields( stepname ); if ( r != null ) { wMessageField.setItems( r.getFieldNames() ); if ( source != null ) { wMessageField.setText( source ); } } } catch ( KettleException ke ) { new ErrorDialog( shell, BaseMessages.getString( PKG, "SyslogMessageDialog.FailedToGetFields.DialogTitle" ), BaseMessages.getString( PKG, "SyslogMessageDialog.FailedToGetFields.DialogMessage" ), ke ); } } }
private void setSchemaField() { if ( !gotpreviousfields ) { try { String value = wSchemaField.getText(); wSchemaField.removeAll(); RowMetaInterface r = transMeta.getPrevStepFields( stepname ); if ( r != null ) { wSchemaField.setItems( r.getFieldNames() ); } if ( value != null ) { wSchemaField.setText( value ); } } catch ( KettleException ke ) { new ErrorDialog( shell, BaseMessages.getString( PKG, "GetTableNamesDialog.FailedToGetFields.DialogTitle" ), BaseMessages.getString( PKG, "GetTableNamesDialog.FailedToGetFields.DialogMessage" ), ke ); } gotpreviousfields = true; } }
private void setisNrCloneInField() { if ( !gotPreviousFields ) { try { String field = wNrCloneField.getText(); wNrCloneField.removeAll(); RowMetaInterface r = transMeta.getPrevStepFields( stepname ); if ( r != null ) { wNrCloneField.setItems( r.getFieldNames() ); } if ( field != null ) { wNrCloneField.setText( field ); } } catch ( KettleException ke ) { new ErrorDialog( shell, BaseMessages.getString( PKG, "CloneRowDialog.FailedToGetFields.DialogTitle" ), BaseMessages .getString( PKG, "CloneRowDialog.FailedToGetFields.DialogMessage" ), ke ); } gotPreviousFields = true; } }
private void PopulateFields( CCombo cc ) { if ( cc.isDisposed() ) { return; } try { String initValue = cc.getText(); cc.removeAll(); RowMetaInterface r = transMeta.getPrevStepFields( stepname ); if ( r != null ) { cc.setItems( r.getFieldNames() ); } if ( !Utils.isEmpty( initValue ) ) { cc.setText( initValue ); } } catch ( KettleException ke ) { new ErrorDialog( shell, BaseMessages.getString( PKG, "XsltDialog.FailedToGetFields.DialogTitle" ), BaseMessages .getString( PKG, "XsltDialog.FailedToGetFields.DialogMessage" ), ke ); } }