/** * Copy information from the meta-data input to the dialog fields. */ public void getData() { if ( jobEntry.getName() != null ) { wName.setText( jobEntry.getName() ); } if ( jobEntry.arguments != null ) { for ( int i = 0; i < jobEntry.arguments.length; i++ ) { TableItem ti = wFields.table.getItem( i ); if ( jobEntry.arguments[i] != null ) { ti.setText( 1, jobEntry.arguments[i] ); } if ( jobEntry.filemasks[i] != null ) { ti.setText( 2, jobEntry.filemasks[i] ); } } wFields.setRowNums(); wFields.optWidth( true ); } wPrevious.setSelection( jobEntry.argFromPrevious ); wIncludeSubfolders.setSelection( jobEntry.includeSubfolders ); wDeleteAllBefore.setSelection( jobEntry.deleteallbefore ); wName.selectAll(); wName.setFocus(); }
/** * Copy information from the meta-data input to the dialog fields. */ public void getData() { if ( input.getFilename() != null ) { wFilename.setText( input.getFilename() ); } wDoNotOpenNewFileInit.setSelection( input.isDoNotOpenNewFileInit() ); wAddToResult.setSelection( input.isAddToResultFiles() ); wStepname.selectAll(); wStepname.setFocus(); }
@Override public void widgetSelected(SelectionEvent e) { if(channel.getText().length() > 0 && message.getText().length() > 0){ publish.publish(id, channel.getText(), message.getText()); TableItem item = new TableItem(table, SWT.None); SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss:SSS", Locale.getDefault()); String time = df.format(new Date()); String[] str = new String[]{time, channel.getText(), message.getText()}; item.setText(str); table.setSelection(item); channel.selectAll(); message.selectAll(); channel.setFocus(); } } });
/** * Copy information from the meta-data input to the dialog fields. */ public void getData() { if ( jobEntry.getName() != null ) { wName.setText( jobEntry.getName() ); } if ( jobEntry.arguments != null ) { for ( int i = 0; i < jobEntry.arguments.length; i++ ) { TableItem ti = wFields.table.getItem( i ); if ( jobEntry.arguments[i] != null ) { ti.setText( 1, jobEntry.arguments[i] ); } if ( jobEntry.filemasks[i] != null ) { ti.setText( 2, jobEntry.filemasks[i] ); } } wFields.setRowNums(); wFields.optWidth( true ); } wPrevious.setSelection( jobEntry.argFromPrevious ); wIncludeSubfolders.setSelection( jobEntry.includeSubfolders ); wName.selectAll(); wName.setFocus(); }
/** * Copy information from the meta-data input to the dialog fields. */ public void getData() { if ( input.getRowcountField() != null ) { wRowcountField.setText( input.getRowcountField() ); } if ( input.isOutputRowcount() ) { wRowcountField.setEnabled( true ); } wOutputRowcount.setSelection( input.isOutputRowcount() ); wStepname.selectAll(); wStepname.setFocus(); }
/** * Copy information from the meta-data input to the dialog fields. */ public void getData() { Table table = wFields.table; if ( input.getFieldName().length > 0 ) { table.removeAll(); } for ( int i = 0; i < input.getFieldName().length; i++ ) { TableItem ti = new TableItem( table, SWT.NONE ); ti.setText( 0, "" + ( i + 1 ) ); ti.setText( 1, input.getFieldName()[i] ); ti.setText( 2, input.getAscending()[i] ? BaseMessages.getString( PKG, "System.Combo.Yes" ) : BaseMessages .getString( PKG, "System.Combo.No" ) ); } wFields.setRowNums(); wFields.optWidth( true ); wStepname.selectAll(); wStepname.setFocus(); }
/** * Copy information from the meta-data input to the dialog fields. */ public void getData() { for ( int i = 0; i < input.getFieldname().length; i++ ) { TableItem item = wFields.table.getItem( i ); item.setText( 1, input.getFieldname()[i] ); item.setText( 2, ValueMetaFactory.getValueMetaName( input.getType()[i] ) ); int len = input.getLength()[i]; int prc = input.getPrecision()[i]; item.setText( 3, len >= 0 ? "" + len : "" ); item.setText( 4, prc >= 0 ? "" + prc : "" ); } wStepname.selectAll(); wStepname.setFocus(); }
/** * Copy information from the meta-data input to the dialog fields. */ public void getData() { if ( jobEntry.getName() != null ) { wName.setText( jobEntry.getName() ); } if ( jobEntry.getMessageabort() != null ) { wMessageAbort.setText( jobEntry.getMessageabort() ); } wName.selectAll(); wName.setFocus(); }
/** * Copy information from the meta-data input to the dialog fields. */ public void getData() { if ( input.getRowThreshold() != null ) { wRowThreshold.setText( input.getRowThreshold() ); } if ( input.getMessage() != null ) { wMessage.setText( input.getMessage() ); } wAlwaysLogRows.setSelection( input.isAlwaysLogRows() ); wAbortButton.setSelection( input.isAbort() ); wAbortWithErrorButton.setSelection( input.isAbortWithError() ); wSafeStopButton.setSelection( input.isSafeStop() ); wStepname.selectAll(); wStepname.setFocus(); }
/** * Copy information from the meta-data input to the dialog fields. */ public void getData() { if ( input.getFilename() != null ) { wFilename.setText( input.getFilename() ); } wLimit.setText( "" + input.getRowLimit() ); wAddResult.setSelection( input.isAddResultFile() ); wStepname.selectAll(); wStepname.setFocus(); }
/** * Copy information from the meta-data input to the dialog fields. */ public void getData() { if ( Utils.isEmpty( wStepname.getText() ) ) { return; } wPort.setText( Const.NVL( input.getPort(), "" ) ); wBufferSize.setText( Const.NVL( input.getBufferSize(), "" ) ); wFlushInterval.setText( Const.NVL( input.getFlushInterval(), "" ) ); wCompressed.setSelection( input.isCompressed() ); wStepname.selectAll(); wStepname.setFocus(); }