@Override public void widgetSelected( SelectionEvent arg0 ) { selectedSubject = wSubject.getText(); addFields(); // Refresh } } );
@Override public void widgetSelected( SelectionEvent selectionEvent ) { String schema = schemaCombo.getText(); sparkRunConfiguration.setSchema( schema ); } } );
private void setAfterIMAPRetrived() { boolean activeMoveToFolfer = ( ( ( wProtocol.getText().equals( MailConnectionMeta.PROTOCOL_STRING_IMAP ) ) && ( MailConnectionMeta .getActionTypeByDesc( wActionType.getText() ) == MailConnectionMeta.ACTION_TYPE_MOVE ) ) || ( MailConnectionMeta .getAfterGetIMAPByDesc( wAfterGetIMAP.getText() ) == MailConnectionMeta.AFTER_GET_IMAP_MOVE ) ); wlMoveToFolder.setEnabled( activeMoveToFolfer ); wMoveToFolder.setEnabled( activeMoveToFolfer ); wTestMoveToFolder.setEnabled( activeMoveToFolfer ); wSelectMoveToFolder.setEnabled( activeMoveToFolfer ); wlcreateMoveToFolder.setEnabled( activeMoveToFolfer ); wcreateMoveToFolder.setEnabled( activeMoveToFolfer ); }
private void get() { if ( wFiletype.getText().equalsIgnoreCase( "CSV" ) ) { getCSV(); } else { getFixed(); } }
private void ok() { if ( Utils.isEmpty( wStepname.getText() ) ) { return; } stepname = wStepname.getText(); // return value input.setMessageField( wMessageField.getText() ); dispose(); } }
private void activeHexa() { boolean activate = ( input.getResultTypeByDesc( wResultType.getText() ) == input.getResultTypeByDesc( "hexadecimal" ) ); wlCompatibility.setEnabled( activate ); wCompatibility.setEnabled( activate ); } }
private void AfterFTPPutActivate() { boolean moveFile = JobEntrySFTPPUT.getAfterSFTPPutByDesc( wAfterFTPPut.getText() ) == JobEntrySFTPPUT.AFTER_FTPSPUT_MOVE; boolean doNothing = JobEntrySFTPPUT.getAfterSFTPPutByDesc( wAfterFTPPut.getText() ) == JobEntrySFTPPUT.AFTER_FTPSPUT_NOTHING; wlDestinationFolderFieldName.setEnabled( moveFile ); wDestinationFolderFieldName.setEnabled( moveFile ); wlCreateDestinationFolder.setEnabled( moveFile ); wCreateDestinationFolder.setEnabled( moveFile ); wlAddFilenameToResult.setEnabled( doNothing ); wAddFilenameToResult.setEnabled( doNothing ); }
public void chooseListMails() { boolean ok = ( wProtocol.getText().equals( MailConnectionMeta.PROTOCOL_STRING_POP3 ) && wListmails.getSelectionIndex() == 1 ); wlFirstmails.setEnabled( ok ); wFirstmails.setEnabled( ok ); }
private void RefreshSize() { boolean useSize = ( JobEntryEvalFilesMetrics.getEvaluationTypeByDesc( wEvaluationType.getText() ) == JobEntryEvalFilesMetrics.EVALUATE_TYPE_SIZE ); wlScale.setVisible( useSize ); wScale.setVisible( useSize ); }
private void ok() { if ( Utils.isEmpty( wStepname.getText() ) ) { return; } input.setDynamicFilenameField( wFileName.getText() ); input.setResultFieldName( wResult.getText() ); input.setaddResultFilenames( wAddResult.getSelection() ); stepname = wStepname.getText(); // return value dispose(); }
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 enableCondition() { boolean enableCondition = !wspecifyQuery.getSelection() && SalesforceConnectionUtils.getRecordsFilterByDesc( wRecordsFilter.getText() ) == SalesforceConnectionUtils.RECORDS_FILTER_ALL; wlCondition.setVisible( enableCondition ); wCondition.setVisible( enableCondition ); wlPosition.setVisible( enableCondition ); } }
public void modifyText( ModifyEvent e ) { // We have new content: change ci connection: ci = transMeta.findDatabase( wConnection.getText() ); setAutoincUse(); setSequence(); input.setChanged(); } } );
private void ok() { if ( Utils.isEmpty( wStepname.getText() ) ) { return; } input.setDynamicField( wFieldName.getText() ); input.setOnlyDigits( wgetOnlyDigits.getSelection() ); input.setResultFieldName( wResult.getText() ); input.setCardType( wFileType.getText() ); input.setNotValidMsg( wNotValidMsg.getText() ); stepname = wStepname.getText(); // return value dispose(); }
private void refresh() { boolean compareValue = ( JobEntrySimpleEval.getSuccessNumberConditionByDesc( wSuccessNumberCondition.getText() ) != JobEntrySimpleEval.SUCCESS_NUMBER_CONDITION_BETWEEN ); wlCompareValue.setVisible( compareValue ); wCompareValue.setVisible( compareValue ); wlMinValue.setVisible( !compareValue ); wMinValue.setVisible( !compareValue ); wlMaxValue.setVisible( !compareValue ); wMaxValue.setVisible( !compareValue ); }
protected void isConnectionSupported() { final String tableName = wTable.getText(), connectionName = wConnection.getText(); if ( !Utils.isEmpty( tableName ) ) { DatabaseMeta dbmeta = transMeta.findDatabase( connectionName ); if ( dbmeta != null && !dbmeta.getDatabaseInterface().supportsStandardTableOutput() ) { showUnsupportedConnectionMessageBox( dbmeta.getDatabaseInterface() ); } } }
private void getInfo() { stepErrorMeta.setTargetStep( StepMeta.findStep( targetSteps, wTargetStep.getText() ) ); stepErrorMeta.setEnabled( wEnabled.getSelection() ); stepErrorMeta.setNrErrorsValuename( wNrErrors.getText() ); stepErrorMeta.setErrorDescriptionsValuename( wErrDesc.getText() ); stepErrorMeta.setErrorFieldsValuename( wErrFields.getText() ); stepErrorMeta.setErrorCodesValuename( wErrCodes.getText() ); stepErrorMeta.setMaxErrors( wMaxErrors.getText() ); stepErrorMeta.setMaxPercentErrors( Const.replace( wMaxPct.getText(), "%", "" ) ); stepErrorMeta.setMinPercentRows( wMinPctRows.getText() ); } }