/** * Copy information from the meta-data input to the dialog fields. */ public void getData() { wFieldname.setText( fieldName == null ? "" : fieldName ); }
private void enableSetEmptyStringAll() { wMask.setText( "" ); }
public void setText( String name ) { wCombo.setText( name ); }
/** * @param text * the text in the Text widget to set. */ public void setText( String text ) { wCombo.setText( text ); modifyListenerTooltipText.modifyText( null ); }
/** * @param property * property. * @param combo * text variable. */ public static void setTextIfPropertyValue( final PluginProperty property, final CCombo combo ) { if ( property.evaluate() ) { combo.setText( ( (KeyValue<?>) property ).stringValue() ); } }
/** * Copy information from the meta-data input to the dialog fields. */ public void getData() { List<StreamInterface> infoStreams = input.getStepIOMeta().getInfoStreams(); StreamInterface headStream = infoStreams.get( 0 ); StreamInterface tailStream = infoStreams.get( 1 ); wHeadHop.setText( Const.NVL( headStream.getStepname(), "" ) ); wTailHop.setText( Const.NVL( tailStream.getStepname(), "" ) ); wStepname.selectAll(); wStepname.setFocus(); }
/** * Copy information from the meta-data input to the dialog fields. */ public void getData() { List<StreamInterface> targetStreams = input.getStepIOMeta().getTargetStreams(); wTrueTo.setText( Const.NVL( targetStreams.get( 0 ).getStepname(), "" ) ); wFalseTo.setText( Const.NVL( targetStreams.get( 1 ).getStepname(), "" ) ); wStepname.selectAll(); wStepname.setFocus(); }
/** * Copy information from the meta-data input to the dialog fields. */ public void getData() { wMessageField.setText( Const.NVL( input.getMessageField(), "" ) ); wStepname.selectAll(); }
/** * Copy information from the meta-data input to the dialog fields. */ public void getData() { if ( input.getFromStep() != null ) { wFrom.setText( input.getFromStep().getName() ); } if ( input.getToStep() != null ) { wTo.setText( input.getToStep().getName() ); } wEnabled.setSelection( input.isEnabled() ); }
/** * Initialization of the tree: - construction using the URL of the WS - add selection listeners to the tree * * @throws KettleException * */ private void initTreeTabWebService( String anURI ) throws KettleException { String text = wOperation.getText(); loadWebService( anURI ); selectWSDLOperation( text ); if ( wsdlOperation != null ) { wOperation.setText( text ); } }
/** * Copy information from the meta-data currentMeta to the dialog fields. */ public void getData() { List<StreamInterface> targetStreams = input.getStepIOMeta().getTargetStreams(); wTrueTo.setText( Const.NVL( targetStreams.get( 0 ).getStepname(), "" ) ); wFalseTo.setText( Const.NVL( targetStreams.get( 1 ).getStepname(), "" ) ); wCondition.setText( Const.NVL( input.getCondition(), "" ) ); wStepname.selectAll(); wStepname.setFocus(); }
/** * Copy information from the meta-data input to the dialog fields. */ public void getData() { if ( input.getName() != null ) { wName.setText( input.getName() ); } if ( input.getDescription() != null ) { wId.setText( input.getDescription() ); } if ( input.getConnection() != null ) { wConnection.setText( input.getConnection().getName() ); } }
private void setValues() { if ( runConfiguration == null ) { runConfiguration = executionConfigurationManager.getRunConfigurationByType( DefaultRunConfiguration.TYPE ); runConfigurationMap.put( DefaultRunConfiguration.TYPE, runConfiguration ); } clearOptions(); runConfiguration.getUI().attach( this ); gOptions.layout(); shell.pack(); wEngine.setText( StringUtils.capitalize( runConfiguration.getType() ) ); wName.setText( Const.NVL( runConfiguration.getName(), "" ) ); wDescription.setText( Const.NVL( runConfiguration.getDescription(), "" ) ); }
private void checkUnavailableMode() { if ( wProtocol.getText().equals( MailConnectionMeta.PROTOCOL_STRING_POP3 ) && MailConnectionMeta.getActionTypeByDesc( wActionType.getText() ) == MailConnectionMeta.ACTION_TYPE_MOVE ) { MessageBox mb = new MessageBox( shell, SWT.OK | SWT.ICON_ERROR ); mb.setMessage( "This action is not available for POP3!" + Const.CR + "Only one Folder (INBOX) is available in POP3." + Const.CR + "If you want to move messages to another folder," + Const.CR + "please use IMAP protocol." ); mb.setText( "ERROR" ); mb.open(); wActionType.setText( MailConnectionMeta.getActionTypeDesc( MailConnectionMeta.ACTION_TYPE_GET ) ); } }
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() ); }
/** * Copy information from the meta-data input to the dialog fields. */ public void getData() { wTypes.select( input.getFileType() ); if ( input.getFilenameField() != null ) { wFilenameField.setText( input.getFilenameField() ); } wStepname.selectAll(); wStepname.setFocus(); }
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 ); } }
/** * Copy information from the meta-data input to the dialog fields. */ public void getData() { wName.setText( Const.nullToEmpty( jobEntry.getName() ) ); wTablename.setText( Const.nullToEmpty( jobEntry.getTablename() ) ); wSchemaname.setText( Const.nullToEmpty( jobEntry.getSchemaname() ) ); if ( jobEntry.getDatabase() != null ) { wConnection.setText( jobEntry.getDatabase().getName() ); } wName.selectAll(); wName.setFocus(); }
public void getData() { wSourceStep.setText( stepErrorMeta.getSourceStep() != null ? stepErrorMeta.getSourceStep().getName() : "" ); wTargetStep.setText( stepErrorMeta.getTargetStep() != null ? stepErrorMeta.getTargetStep().getName() : "" ); wEnabled.setSelection( stepErrorMeta.isEnabled() ); wNrErrors.setText( Const.NVL( stepErrorMeta.getNrErrorsValuename(), "" ) ); wErrDesc.setText( Const.NVL( stepErrorMeta.getErrorDescriptionsValuename(), "" ) ); wErrFields.setText( Const.NVL( stepErrorMeta.getErrorFieldsValuename(), "" ) ); wErrCodes.setText( Const.NVL( stepErrorMeta.getErrorCodesValuename(), "" ) ); wMaxErrors.setText( stepErrorMeta.getMaxErrors() != null ? stepErrorMeta.getMaxErrors() : "" ); wMaxPct.setText( stepErrorMeta.getMaxPercentErrors() != null ? stepErrorMeta.getMaxPercentErrors() : "" ); wMinPctRows.setText( stepErrorMeta.getMinPercentRows() != null ? stepErrorMeta.getMinPercentRows() : "" ); wSourceStep.setFocus(); }