public void removeAll() { wCombo.removeAll(); }
public void removeAll() { wCombo.removeAll(); }
private void reinitConnectionDropDown( CCombo dropDown, String selected ) { dropDown.removeAll(); addDatabases( dropDown ); selectDatabase( dropDown, selected ); }
private void reinitConnectionDropDown( CCombo dropDown, String selected ) { dropDown.removeAll(); addDatabases( dropDown ); selectDatabase( dropDown, selected ); }
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 ( 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(); 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 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(); List<Charset> values = new ArrayList<>( 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 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 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 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 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 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 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 ); } }
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 ); } }