private void setPingType() { wlTimeOut.setEnabled( wPingType.getSelectionIndex() == jobEntry.isystemPing || wPingType.getSelectionIndex() == jobEntry.ibothPings ); wTimeOut.setEnabled( wPingType.getSelectionIndex() == jobEntry.isystemPing || wPingType.getSelectionIndex() == jobEntry.ibothPings ); wlNbrPackets.setEnabled( wPingType.getSelectionIndex() == jobEntry.iclassicPing || wPingType.getSelectionIndex() == jobEntry.ibothPings ); wNbrPackets.setEnabled( wPingType.getSelectionIndex() == jobEntry.iclassicPing || wPingType.getSelectionIndex() == jobEntry.ibothPings ); }
private void activeOneFolder() { wlFoldername.setEnabled( wExportType.getSelectionIndex() == 4 ); wFoldername.setEnabled( wExportType.getSelectionIndex() == 4 ); wbFoldername.setEnabled( wExportType.getSelectionIndex() == 4 ); wlNewFolder.setEnabled( wExportType.getSelectionIndex() == 3 ); wNewFolder.setEnabled( wExportType.getSelectionIndex() == 3 ); }
private void SpecifyCompareOnlyActivate() { wWildcard.setEnabled( wCompareOnly.getSelectionIndex() == 3 ); wlWildcard.setEnabled( wCompareOnly.getSelectionIndex() == 3 ); wCompareFileContent.setEnabled( wCompareOnly.getSelectionIndex() != 2 ); wlCompareFileContent.setEnabled( wCompareOnly.getSelectionIndex() != 2 ); wCompareFileSize.setEnabled( wCompareOnly.getSelectionIndex() != 2 ); wlCompareFileSize.setEnabled( wCompareOnly.getSelectionIndex() != 2 ); }
private void CheckuseUserTarget() { wComString.setEnabled( wTargetType.getSelectionIndex() == 0 ); wUser.setEnabled( wTargetType.getSelectionIndex() == 1 ); wPassphrase.setEnabled( wTargetType.getSelectionIndex() == 1 ); wEngineID.setEnabled( wTargetType.getSelectionIndex() == 1 ); }
private void activeSuccessCondition() { wlNrErrorsLessThan.setEnabled( wSuccessCondition.getSelectionIndex() != 0 ); wNrErrorsLessThan.setEnabled( wSuccessCondition.getSelectionIndex() != 0 ); }
private void activeSuccessCondition() { wlNrErrorsLessThan.setEnabled( wSuccessCondition.getSelectionIndex() != 0 ); wNrErrorsLessThan.setEnabled( wSuccessCondition.getSelectionIndex() != 0 ); }
private void activeSuccessCondition() { wlNrErrorsLessThan.setEnabled( wSuccessCondition.getSelectionIndex() != 0 ); wNrErrorsLessThan.setEnabled( wSuccessCondition.getSelectionIndex() != 0 ); }
private void activeSuccessCondition() { wlLimit.setEnabled( wSuccessCondition.getSelectionIndex() != 0 ); wLimit.setEnabled( wSuccessCondition.getSelectionIndex() != 0 ); }
private void ActiveRowSeparator() { wRowSeparator.setEnabled( wRowSeparatorFormat.getSelectionIndex() == 3 ); wlRowSeparator.setEnabled( wRowSeparatorFormat.getSelectionIndex() == 3 ); }
private void activeSuccessCondition() { wlNrErrorsLessThan.setEnabled( wSuccessCondition.getSelectionIndex() != 0 ); wNrErrorsLessThan.setEnabled( wSuccessCondition.getSelectionIndex() != 0 ); }
private void enableExtension() { wProtectSheet.setEnabled( wExtension.getSelectionIndex() == 0 ); if ( wExtension.getSelectionIndex() == 0 ) { wPassword.setEnabled( wProtectSheet.getSelection() ); wProtectedBy.setEnabled( wProtectSheet.getSelection() ); wStreamData.setEnabled( false ); } else { wPassword.setEnabled( false ); wProtectedBy.setEnabled( false ); wStreamData.setEnabled( true ); } }
private void setDataType() { if ( wDataFiletype.getSelectionIndex() == 0 || wDataFiletype.getSelectionIndex() == 2 ) { wFieldTerminator.setEnabled( true ); wlFieldTerminator.setEnabled( true ); } else { wFieldTerminator.setEnabled( false ); wlFieldTerminator.setEnabled( false ); } }
private void activeResultType() { int currentType = wType.getSelectionIndex(); boolean active = currentType == 2 || currentType == 3 || currentType == 4; wlResultType.setEnabled( active ); wResultType.setEnabled( active ); }
public void chooseListMails() { boolean ok = ( wProtocol.getText().equals( MailConnectionMeta.PROTOCOL_STRING_POP3 ) && wListmails.getSelectionIndex() == 1 ); wlFirstmails.setEnabled( ok ); wFirstmails.setEnabled( ok ); }
public void chooseListMails() { boolean ok = ( wProtocol.getText().equals( MailConnectionMeta.PROTOCOL_STRING_POP3 ) && wListmails.getSelectionIndex() == 1 ); wlFirstmails.setEnabled( ok ); wFirstmails.setEnabled( ok ); }
private void getInfo( KettleDatabaseRepositoryMeta info ) { info.setName( wName.getText() ); info.setDescription( wId.getText() ); int idx = wConnection.getSelectionIndex(); if ( idx >= 0 ) { DatabaseMeta dbinfo = repositories.getDatabase( idx ); info.setConnection( dbinfo ); } else { info.setConnection( null ); } }
private void ok() { if ( Utils.isEmpty( wStepname.getText() ) ) { return; } stepname = wStepname.getText(); // return value input.setTimeOut( wTimeout.getText() ); input.setScaleTimeCode( wScaleTime.getSelectionIndex() ); dispose(); } }
private void setCodeType() { if ( wCodePage.getSelectionIndex() == 3 ) { wSpecificCodePage.setEnabled( true ); wlSpecificCodePage.setEnabled( true ); } else { wSpecificCodePage.setEnabled( false ); wlSpecificCodePage.setEnabled( false ); } }
private void ok() { if ( Utils.isEmpty( wName.getText() ) ) { MessageBox mb = new MessageBox( shell, SWT.OK | SWT.ICON_ERROR ); mb.setText( BaseMessages.getString( PKG, "System.StepJobEntryNameMissing.Title" ) ); mb.setMessage( BaseMessages.getString( PKG, "System.JobEntryNameMissing.Msg" ) ); mb.open(); return; } jobEntry.setName( wName.getText() ); jobEntry.setMaximumTimeout( wMaximumTimeout.getText() ); jobEntry.scaleTime = wScaleTime.getSelectionIndex(); dispose(); }
public void DumpFile() { jobEntry.setChanged(); if ( wOutDumpValue.getSelectionIndex() == 0 ) { wSeparator.setEnabled( true ); wEnclosed.setEnabled( true ); wLineterminated.setEnabled( true ); } else { wSeparator.setEnabled( false ); wEnclosed.setEnabled( false ); wLineterminated.setEnabled( false ); } }