public void add( String item ) { wCombo.add( item ); }
public void add( String item ) { wCombo.add( item ); }
private void setIDComboOptions() { String[] steamFields = getSteamFieldsNames( false ); if ( steamFields != null ) { for ( String streamField : steamFields ) { comboIDFieldName.add( streamField ); } } }
private void setModelComboOptions() { String[] objectList = getModelList(); if ( objectList == null ) { return; } for ( String objectName : objectList ) { if ( comboModelName.indexOf( objectName ) == -1 ) { comboModelName.add( objectName ); } } }
private void fillModelCombo() { String[] modelList = getModelList(); if ( modelList != null ) { for ( String modelName : modelList ) { if ( comboModelName.indexOf( modelName ) == -1 ) { comboModelName.add( modelName ); } } } }
private void setModelComboOptions() { String[] objectList = getModelList(); if ( objectList == null ) { return; } for ( String objectName : objectList ) { if ( comboModelName.indexOf( objectName ) == -1 ) { comboModelName.add( objectName ); } } }
/** * Adds the databases with the specified type to the Combo Box component. * * @param wConnection the Combo Box component * @param databaseType the database type */ public void addDatabases( CCombo wConnection, Class<? extends DatabaseInterface> databaseType ) { for ( int i = 0; i < transMeta.nrDatabases(); i++ ) { DatabaseMeta ci = transMeta.getDatabase( i ); if ( databaseType == null || ci.getDatabaseInterface().getClass().equals( databaseType ) ) { wConnection.add( ci.getName() ); } } }
/** * Adds the databases from the job metadata to the combo box. * * @param wConnection * the w connection */ public void addDatabases( CCombo wConnection ) { for ( int i = 0; i < jobMeta.nrDatabases(); i++ ) { DatabaseMeta ci = jobMeta.getDatabase( i ); wConnection.add( ci.getName() ); } }
private void setEncodings() { // Encoding of the text file: if ( !gotEncodings ) { gotEncodings = true; wEncoding.removeAll(); List<Charset> values = new ArrayList<Charset>( Charset.availableCharsets().values() ); for ( int i = 0; i < values.size(); i++ ) { Charset charSet = values.get( i ); wEncoding.add( charSet.displayName() ); } // Now select the default! String defEncoding = Const.getEnvironmentVariable( "file.encoding", "UTF-8" ); int idx = Const.indexOfString( defEncoding, wEncoding.getItems() ); if ( idx >= 0 ) { wEncoding.select( idx ); } } }
private void setEncodings() { // Encoding of the text file: if ( !gotEncodings ) { gotEncodings = true; wEncoding.removeAll(); List<Charset> values = new ArrayList<Charset>( Charset.availableCharsets().values() ); for ( int i = 0; i < values.size(); i++ ) { Charset charSet = values.get( i ); wEncoding.add( charSet.displayName() ); } // Now select the default! String defEncoding = Const.getEnvironmentVariable( "file.encoding", "UTF-8" ); int idx = Const.indexOfString( defEncoding, wEncoding.getItems() ); if ( idx >= 0 ) { wEncoding.select( idx ); } } }
private void setEncodings() { // Encoding of the text file: if ( !gotEncodings ) { gotEncodings = true; wEncoding.removeAll(); ArrayList<Charset> values = new ArrayList<Charset>( Charset.availableCharsets().values() ); for ( int i = 0; i < values.size(); i++ ) { Charset charSet = values.get( i ); wEncoding.add( charSet.displayName() ); } // Now select the default! String defEncoding = Const.getEnvironmentVariable( "file.encoding", "UTF-8" ); int idx = Const.indexOfString( defEncoding, wEncoding.getItems() ); if ( idx >= 0 ) { wEncoding.select( idx ); } } }
private void setEncodings() { // Encoding of the text file: if ( !gotEncodings ) { gotEncodings = true; wEncoding.removeAll(); List<Charset> values = new ArrayList<Charset>( Charset.availableCharsets().values() ); for ( Charset charSet : values ) { wEncoding.add( charSet.displayName() ); } // Now select the default! String defEncoding = Const.getEnvironmentVariable( "file.encoding", "UTF-8" ); int idx = Const.indexOfString( defEncoding, wEncoding.getItems() ); if ( idx >= 0 ) { wEncoding.select( idx ); } } }
private void setEncodings() { // Encoding of the text file: if ( !gotEncodings ) { gotEncodings = true; wEncoding.removeAll(); java.util.List<Charset> values = new ArrayList<Charset>( Charset.availableCharsets().values() ); for ( Charset charSet : values ) { wEncoding.add( charSet.displayName() ); } // Now select the default! String defEncoding = Const.getEnvironmentVariable( "file.encoding", "UTF-8" ); int idx = Const.indexOfString( defEncoding, wEncoding.getItems() ); if ( idx >= 0 ) { wEncoding.select( idx ); } } } }
private void fillConnections() { wConnection.removeAll(); // Fill in the available connections... for ( int i = 0; i < repositories.nrDatabases(); i++ ) { wConnection.add( repositories.getDatabase( i ).getName() ); } }
private void fillStoredData() { if ( stepname != null ) { textStepName.setText( stepname ); } int index = addConnectionLine.indexOf( meta.getDatabaseMeta() != null ? meta.getDatabaseMeta().getName() : "" ); if ( index >= 0 ) { addConnectionLine.select( index ); } if ( meta.getModelName() != null ) { comboModelName.add( meta.getModelName() ); comboModelName.select( 0 ); } textCommitBatchSize.setText( String.valueOf( meta.getCommitBatchSize() ) ); comboIDFieldName.setText( meta.getIdFieldName() ); }
public void run() { try { RowMetaInterface inputfields = transMeta.getPrevStepFields( stepname ); if ( inputfields != null ) { for ( int i = 0; i < inputfields.size(); i++ ) { wFilenameField.add( inputfields.getValueMeta( i ).getName() ); } } } catch ( Exception ke ) { new ErrorDialog( shell, BaseMessages.getString( PKG, "FilesToResultDialog.FailedToGetFields.DialogTitle" ), BaseMessages.getString( PKG, "FilesToResultDialog.FailedToGetFields.DialogMessage" ), ke ); } } };
private void setXMLStreamField() { try { wYAMLLField.removeAll(); RowMetaInterface r = transMeta.getPrevStepFields( stepname ); if ( r != null ) { r.getFieldNames(); for ( int i = 0; i < r.getFieldNames().length; i++ ) { wYAMLLField.add( r.getFieldNames()[i] ); } } } catch ( KettleException ke ) { new ErrorDialog( shell, BaseMessages.getString( PKG, "YamlInputDialog.FailedToGetFields.DialogTitle" ), BaseMessages .getString( PKG, "YamlInputDialog.FailedToGetFields.DialogMessage" ), ke ); } }
private void setFileField() { try { wFilenameField.removeAll(); RowMetaInterface r = transMeta.getPrevStepFields( stepname ); if ( r != null ) { r.getFieldNames(); for ( int i = 0; i < r.getFieldNames().length; i++ ) { wFilenameField.add( r.getFieldNames()[i] ); } } } catch ( KettleException ke ) { new ErrorDialog( shell, BaseMessages.getString( PKG, "GetFilesRowsCountDialog.FailedToGetFields.DialogTitle" ), BaseMessages.getString( PKG, "GetFilesRowsCountDialog.FailedToGetFields.DialogMessage" ), ke ); } }
private void setURLPreviousField() { try { wUrlField.removeAll(); RowMetaInterface r = transMeta.getPrevStepFields( stepname ); if ( r != null ) { r.getFieldNames(); for ( int i = 0; i < r.getFieldNames().length; i++ ) { wUrlField.add( r.getFieldNames()[i] ); } } } catch ( KettleException ke ) { new ErrorDialog( shell, BaseMessages.getString( PKG, "RssInputDialog.FailedToGetFields.DialogTitle" ), BaseMessages .getString( PKG, "RssInputDialog.FailedToGetFields.DialogMessage" ), ke ); } }
private void get() { try { wTableName.removeAll(); RowMetaInterface r = transMeta.getPrevStepFields( stepname ); if ( r != null ) { r.getFieldNames(); for ( int i = 0; i < r.getFieldNames().length; i++ ) { wTableName.add( r.getFieldNames()[i] ); } } } catch ( KettleException ke ) { new ErrorDialog( shell, BaseMessages.getString( PKG, "TableExistsDialog.FailedToGetFields.DialogTitle" ), BaseMessages .getString( PKG, "TableExistsDialog.FailedToGetFields.DialogMessage" ), ke ); } }