Java Code Examples for org.eclipse.swt.widgets.TableItem#getText()

The following examples show how to use org.eclipse.swt.widgets.TableItem#getText() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: RandomCCNumberGeneratorDialog.java    From pentaho-kettle with Apache License 2.0 6 votes vote down vote up
private void getInfo( RandomCCNumberGeneratorMeta in ) throws KettleException {

    stepname = wStepname.getText(); // return value
    int count = wFields.nrNonEmpty();
    in.allocate( count );

    //CHECKSTYLE:Indentation:OFF
    for ( int i = 0; i < count; i++ ) {
      TableItem item = wFields.getNonEmpty( i );
      in.getFieldCCType()[i] = item.getText( 1 );
      in.getFieldCCLength()[i] = item.getText( 2 );
      in.getFieldCCSize()[i] = item.getText( 3 );
    }
    in.setCardNumberFieldName( wCCNumberField.getText() );
    in.setCardTypeFieldName( wCCTypeField.getText() );
    in.setCardLengthFieldName( wCCLengthField.getText() );
  }
 
Example 2
Source File: PentahoReportingOutputDialog.java    From pentaho-kettle with Apache License 2.0 6 votes vote down vote up
private void ok() {
  stepname = wStepname.getText(); // return value

  input.getParameterFieldMap().clear();
  for ( int i = 0; i < wFields.nrNonEmpty(); i++ ) {
    TableItem item = wFields.getNonEmpty( i );
    String name = item.getText( 1 );
    String field = item.getText( 2 );
    if ( !Utils.isEmpty( name ) && !Utils.isEmpty( field ) ) {
      input.getParameterFieldMap().put( name, field );
    }
  }

  input.setInputFileField( wInput.getText() );
  input.setOutputFileField( wOutput.getText() );
  input.setOutputProcessorType( ProcessorType.values()[wProcessor.getSelectionIndex()] );
  input.setCreateParentfolder( wParentFolder.getSelection() );
  dispose();
}
 
Example 3
Source File: SecretKeyGeneratorDialog.java    From hop with Apache License 2.0 6 votes vote down vote up
private void getInfo( SecretKeyGeneratorMeta in ) throws HopException {

    transformName = wTransformName.getText(); // return value
    int count = wFields.nrNonEmpty();
    in.allocate( count );

    //CHECKSTYLE:Indentation:OFF
    for ( int i = 0; i < count; i++ ) {
      TableItem item = wFields.getNonEmpty( i );
      in.getAlgorithm()[ i ] = item.getText( 1 );
      in.getScheme()[ i ] = item.getText( 2 );
      in.getSecretKeyLength()[ i ] = item.getText( 3 );
      in.getSecretKeyCount()[ i ] = item.getText( 4 );
    }
    in.setSecretKeyFieldName( wSecretKeyField.getText() );
    in.setAlgorithmFieldName( wAlgorithmField.getText() );
    in.setSecretKeyLengthFieldName( wSecretKeyLengthField.getText() );
    in.setOutputKeyInBinary( wOutputKeyAsByinary.getSelection() );
  }
 
Example 4
Source File: DataGridDialog.java    From pentaho-kettle with Apache License 2.0 6 votes vote down vote up
@Override
public void moveRow( int position1, int position2 ) {
  //if one of rows is empty -- don't move data
  if ( !wFields.getNonEmptyIndexes().contains( position1 )
          || !wFields.getNonEmptyIndexes().contains( position2 ) ) {
    wFields.nrNonEmpty();
    return;
  }

  Integer fieldRealPosition1 =  getIdxByValue( wFields.getNonEmptyIndexes(), position1 );
  Integer fieldRealPosition2 =  getIdxByValue( wFields.getNonEmptyIndexes(), position2 );
  if ( fieldRealPosition1 == null || fieldRealPosition2 == null ) {
    return; //can not happen (prevent warnings)
  }
  //data table have one technical column
  int dataPosition1 = fieldRealPosition1 + 1;
  int dataPosition2 = fieldRealPosition2 + 1;

  for ( TableItem item : wData.table.getItems() ) {
    String value1 = item.getText( dataPosition1 );
    String value2 = item.getText( dataPosition2 );
    item.setText( dataPosition2, value1 );
    item.setText( dataPosition1, value2 );
  }
  wFields.nrNonEmpty();
}
 
Example 5
Source File: DataSetDialog.java    From pentaho-pdi-dataset with Apache License 2.0 6 votes vote down vote up
/**
 * @param set The data set to load the dialog information into
 */
public void getInfo( DataSet set ) {

  set.setName( wName.getText() );
  set.setDescription( wDescription.getText() );
  set.setGroup( DataSetConst.findDataSetGroup( groups, wDataSetGroup.getText() ) );
  set.setTableName( wTableName.getText() );
  set.getFields().clear();
  int nrFields = wFieldMapping.nrNonEmpty();
  for ( int i = 0; i < nrFields; i++ ) {
    TableItem item = wFieldMapping.getNonEmpty( i );
    int colnr = 1;
    String fieldName = item.getText( colnr++ );
    String columnName = item.getText( colnr++ );
    int type = ValueMetaFactory.getIdForValueMeta( item.getText( colnr++ ) );
    String format = item.getText( colnr++ );
    int length = Const.toInt( item.getText( colnr++ ), -1 );
    int precision = Const.toInt( item.getText( colnr++ ), -1 );
    String comment = item.getText( colnr++ );

    DataSetField field = new DataSetField( fieldName, columnName, type, length, precision, comment, format );
    set.getFields().add( field );
  }

}
 
Example 6
Source File: ModelPropertiesDialog.java    From erflute with Apache License 2.0 5 votes vote down vote up
@Override
protected void performOK() {
    modelProperties.clear();

    for (int i = 0; i < table.getItemCount(); i++) {
        final TableItem item = table.getItem(i);

        if (Check.isEmpty(item.getText(0)) && Check.isEmpty(item.getText(1))) {
            continue;
        }

        final NameValue property = new NameValue(item.getText(0), item.getText(1));
        modelProperties.addProperty(property);
    }
}
 
Example 7
Source File: JaninoDialog.java    From pentaho-kettle with Apache License 2.0 5 votes vote down vote up
private void ok() {
  if ( Utils.isEmpty( wStepname.getText() ) ) {
    return;
  }

  stepname = wStepname.getText(); // return value

  currentMeta.allocate( wFields.nrNonEmpty() );

  int nrNonEmptyFields = wFields.nrNonEmpty();
  for ( int i = 0; i < nrNonEmptyFields; i++ ) {
    TableItem item = wFields.getNonEmpty( i );

    String fieldName = item.getText( 1 );
    String formula = item.getText( 2 );
    int valueType = ValueMetaFactory.getIdForValueMeta( item.getText( 3 ) );
    int valueLength = Const.toInt( item.getText( 4 ), -1 );
    int valuePrecision = Const.toInt( item.getText( 5 ), -1 );
    String replaceField = item.getText( 6 );

    //CHECKSTYLE:Indentation:OFF
    currentMeta.getFormula()[i] = new JaninoMetaFunction( fieldName, formula, valueType,
      valueLength, valuePrecision, replaceField );
  }

  if ( !originalMeta.equals( currentMeta ) ) {
    currentMeta.setChanged();
    changed = currentMeta.hasChanged();
  }

  dispose();
}
 
Example 8
Source File: TableView.java    From pentaho-kettle with Apache License 2.0 5 votes vote down vote up
private String getSelectedText() {
  String selection = "";

  for ( int c = 1; c < table.getColumnCount(); c++ ) {
    TableColumn tc = table.getColumn( c );
    if ( c > 1 ) {
      selection += CLIPBOARD_DELIMITER;
    }
    selection += tc.getText();
  }
  selection += Const.CR;

  TableItem[] items = table.getSelection();
  if ( items.length == 0 ) {
    return null;
  }

  for ( int r = 0; r < items.length; r++ ) {
    TableItem ti = items[r];
    for ( int c = 1; c < table.getColumnCount(); c++ ) {
      if ( c > 1 ) {
        selection += CLIPBOARD_DELIMITER;
      }
      selection += ti.getText( c );
    }
    selection += Const.CR;
  }
  return selection;
}
 
Example 9
Source File: SimpleMappingDialog.java    From hop with Apache License 2.0 5 votes vote down vote up
public void applyChanges() {

      int nrLines = wMappingParameters.nrNonEmpty();
      String[] variables = new String[ nrLines ];
      String[] inputFields = new String[ nrLines ];
      parameters.setVariable( variables );
      parameters.setInputField( inputFields );
      //CHECKSTYLE:Indentation:OFF
      for ( int i = 0; i < nrLines; i++ ) {
        TableItem item = wMappingParameters.getNonEmpty( i );
        parameters.getVariable()[ i ] = item.getText( 1 );
        parameters.getInputField()[ i ] = item.getText( 2 );
      }
      parameters.setInheritingAllVariables( wInheritAll.getSelection() );
    }
 
Example 10
Source File: ReplaceStringDialog.java    From hop with Apache License 2.0 5 votes vote down vote up
private void getInfo( ReplaceStringMeta inf ) {

    int nrkeys = wFields.nrNonEmpty();

    inf.allocate( nrkeys );
    if ( isDebug() ) {
      logDebug( BaseMessages.getString( PKG, "ReplaceStringDialog.Log.FoundFields", String.valueOf( nrkeys ) ) );
    }
    //CHECKSTYLE:Indentation:OFF
    for ( int i = 0; i < nrkeys; i++ ) {
      TableItem item = wFields.getNonEmpty( i );
      inf.getFieldInStream()[ i ] = item.getText( 1 );
      inf.getFieldOutStream()[ i ] = item.getText( 2 );
      inf.getUseRegEx()[ i ] = ReplaceStringMeta.getUseRegExByDesc( item.getText( 3 ) );
      inf.getReplaceString()[ i ] = item.getText( 4 );
      inf.getReplaceByString()[ i ] = item.getText( 5 );

      inf.isSetEmptyString()[ i ] =
        BaseMessages.getString( PKG, "System.Combo.Yes" ).equalsIgnoreCase( item.getText( 6 ) );
      if ( inf.isSetEmptyString()[ i ] ) {
        inf.getReplaceByString()[ i ] = "";
      }
      inf.getFieldReplaceByString()[ i ] = item.getText( 7 );
      if ( !Utils.isEmpty( item.getText( 7 ) ) ) {
        inf.getReplaceByString()[ i ] = "";
      }

      inf.getWholeWord()[ i ] = ReplaceStringMeta.getWholeWordByDesc( item.getText( 8 ) );
      inf.getCaseSensitive()[ i ] = ReplaceStringMeta.getCaseSensitiveByDesc( item.getText( 9 ) );
      inf.isUnicode()[ i ] = ReplaceStringMeta.getIsUnicodeByDesc( item.getText( 10 ) );
    }

    transformName = wTransformName.getText(); // return value
  }
 
Example 11
Source File: RegexEvalDialog.java    From hop with Apache License 2.0 5 votes vote down vote up
private void ok() {
  if ( Utils.isEmpty( wTransformName.getText() ) ) {
    return;
  }

  transformName = wTransformName.getText(); // return value

  setRegexOptions( input );

  int nrFields = wFields.nrNonEmpty();

  input.allocate( nrFields );

  //CHECKSTYLE:Indentation:OFF
  for ( int i = 0; i < input.getFieldName().length; i++ ) {
    TableItem ti = wFields.getNonEmpty( i );
    input.getFieldName()[ i ] = ti.getText( 1 );
    input.getFieldType()[ i ] = ValueMetaFactory.getIdForValueMeta( ti.getText( 2 ) );
    input.getFieldLength()[ i ] = Const.toInt( ti.getText( 3 ), -1 );
    input.getFieldPrecision()[ i ] = Const.toInt( ti.getText( 4 ), -1 );
    input.getFieldFormat()[ i ] = ti.getText( 5 );
    input.getFieldGroup()[ i ] = ti.getText( 6 );
    input.getFieldDecimal()[ i ] = ti.getText( 7 );
    input.getFieldCurrency()[ i ] = ti.getText( 8 );
    input.getFieldNullIf()[ i ] = ti.getText( 9 );
    input.getFieldIfNull()[ i ] = ti.getText( 10 );
    input.getFieldTrimType()[ i ] = ValueMetaString.getTrimTypeByDesc( ti.getText( 11 ) );
  }

  dispose();
}
 
Example 12
Source File: CatalogManagerDialog.java    From translationstudio8 with GNU General Public License v2.0 5 votes vote down vote up
public void editCatalog() {
	if (table.getSelectionCount() >= 1) {
		TableItem item = table.getSelection()[0];
		String name = item.getText(1);
		String id = item.getText(2);
		String url = item.getText(3);

		String xpath = "";
		if ("public".equalsIgnoreCase(name)) {
			xpath = ("/catalog/public[@publicId='" + id + "' and @uri='" + url + "']");
		} else if ("system".equalsIgnoreCase(name)) {
			xpath = ("/catalog/system[@systemId='" + id + "' and @uri='" + url + "']");
		} else if ("uri".equalsIgnoreCase(name)) {
			xpath = ("/catalog/uri[@name='" + id + "' and @uri='" + url + "']");
		} else if ("nextCatalog".equalsIgnoreCase(name)) {
			xpath = ("/catalog/nextCatalog[@catalog='" + url + "']");
		}

		AddOrEditCatalogDialog dialog = new AddOrEditCatalogDialog(getShell(), root, adHandler, false);
		dialog.create();
		dialog.setInitData(name, id, url, xpath);
		int result = dialog.open();
		if (result == IDialogConstants.OK_ID) {
			tableViewer.setInput(getCatalogValue()); // 更新列表
		}
	} else {
		MessageDialog.openInformation(getShell(), Messages.getString("dialogs.CatalogManagerDialog.msgTitle2"),
				Messages.getString("dialogs.CatalogManagerDialog.msg3"));
	}
}
 
Example 13
Source File: DatabaseMetaDialog.java    From hop with Apache License 2.0 5 votes vote down vote up
private DatabaseMeta getInfo( DatabaseMeta meta ) {

    meta.setName( wName.getText() );
    meta.setDatabaseType( wConnectionType.getText() );

    // Get the database specific information
    //
    guiCompositeWidgets.getWidgetsContents( meta.getIDatabase(), DatabaseMeta.GUI_PLUGIN_ELEMENT_PARENT_ID );

    meta.setAccessType( wODBC.getSelection() ? DatabaseMeta.TYPE_ACCESS_ODBC : DatabaseMeta.TYPE_ACCESS_NATIVE );

    meta.setOdbcDsn( wOdbcDsn.getText() );
    meta.setManualUrl( wManualUrl.getText() );
    meta.setUsername( wUsername.getText() );
    meta.setPassword( wPassword.getText() );

    meta.setSupportsBooleanDataType( wSupportsBoolean.getSelection() );
    meta.setSupportsTimestampDataType( wSupportsTimestamp.getSelection() );
    meta.setQuoteAllFields( wQuoteAll.getSelection() );
    meta.setForcingIdentifiersToLowerCase( wForceLowercase.getSelection() );
    meta.setForcingIdentifiersToUpperCase( wForceUppercase.getSelection() );
    meta.setPreserveReservedCase( wPreserveCase.getSelection() );
    meta.setPreferredSchemaName( wPreferredSchema.getText() );
    meta.setConnectSql( wSqlStatements.getText() );

    meta.getExtraOptions().clear();
    for ( int i = 0; i < wOptions.nrNonEmpty(); i++ ) {
      TableItem item = wOptions.getNonEmpty( i );
      String option = item.getText( 1 );
      String value = item.getText( 2 );
      meta.addExtraOption( meta.getPluginId(), option, value );
    }

    return meta;
  }
 
Example 14
Source File: HopDescribedVariablesDialog.java    From hop with Apache License 2.0 5 votes vote down vote up
private void ok() {
  describedVariables.clear();
  for (int i=0;i<wFields.nrNonEmpty();i++) {
    TableItem item = wFields.getNonEmpty( i );
    String name = item.getText(1);
    String value = item.getText(2);
    String description = item.getText(3);
    describedVariables.add( new DescribedVariable(name, value, description) );
  }

  dispose();
}
 
Example 15
Source File: MonetDBBulkLoaderDialog.java    From pentaho-kettle with Apache License 2.0 5 votes vote down vote up
protected void getInfo( MonetDBBulkLoaderMeta inf ) {
  int nrfields = wReturn.nrNonEmpty();

  inf.allocate( nrfields );

  if ( log.isDebug() ) {
    logDebug( BaseMessages.getString( PKG, "MonetDBBulkLoaderDialog.Log.FoundFields", "" + nrfields ) );
  }
  //CHECKSTYLE:Indentation:OFF
  for ( int i = 0; i < nrfields; i++ ) {
    TableItem item = wReturn.getNonEmpty( i );
    inf.getFieldTable()[i] = item.getText( 1 );
    inf.getFieldStream()[i] = item.getText( 2 );
    inf.getFieldFormatOk()[i] = "Y".equalsIgnoreCase( item.getText( 3 ) );
  }
  // General Settings Tab values from step meta-data configuration.
  inf.setDbConnectionName( wConnection.getText() );
  inf.setSchemaName( wSchema.getText() );
  inf.setTableName( wTable.getText() );
  inf.setDatabaseMeta( transMeta.findDatabase( wConnection.getText() ) );
  inf.setBufferSize( wBufferSize.getText() );
  inf.setLogFile( wLogFile.getText() );
  inf.setTruncate( wTruncate.getSelection() );
  inf.setFullyQuoteSQL( wFullyQuoteSQL.getSelection() );

  // MonetDB API Settings tab
  inf.setFieldSeparator( wFieldSeparator.getText() );
  inf.setFieldEnclosure( wFieldEnclosure.getText() );
  inf.setNULLrepresentation( wNULLrepresentation.getText() );
  inf.setEncoding( wEncoding.getText() );

  stepname = wStepname.getText(); // return value
}
 
Example 16
Source File: ConfigurationDialog.java    From hop with Apache License 2.0 5 votes vote down vote up
protected void getInfoVariables() {
  Map<String, String> map = new HashMap<>();
  int nrNonEmptyVariables = wVariables.nrNonEmpty();
  for ( int i = 0; i < nrNonEmptyVariables; i++ ) {
    TableItem tableItem = wVariables.getNonEmpty( i );
    String varName = tableItem.getText( 1 );
    String varValue = tableItem.getText( 2 );

    if ( !Utils.isEmpty( varName ) ) {
      map.put( varName, varValue );
    }
  }
  configuration.setVariablesMap( map );
}
 
Example 17
Source File: SortRowsDialog.java    From pentaho-kettle with Apache License 2.0 5 votes vote down vote up
private void ok() {
  if ( Utils.isEmpty( wStepname.getText() ) ) {
    return;
  }

  stepname = wStepname.getText(); // return value

  // copy info to SortRowsMeta class (input)
  input.setPrefix( wPrefix.getText() );
  input.setDirectory( wSortDir.getText() );
  input.setSortSize( wSortSize.getText() );
  input.setFreeMemoryLimit( wFreeMemory.getText() );
  log.logDetailed( "Sort rows", "Compression is set to " + wCompress.getSelection() );
  input.setCompressFiles( wCompress.getSelection() );
  input.setCompressFilesVariable( wCompress.getVariableName() );
  input.setOnlyPassingUniqueRows( wUniqueRows.getSelection() );

  // Table table = wFields.table;
  int nrfields = wFields.nrNonEmpty();

  input.allocate( nrfields );

  //CHECKSTYLE:Indentation:OFF
  //CHECKSTYLE:LineLength:OFF
  for ( int i = 0; i < nrfields; i++ ) {
    TableItem ti = wFields.getNonEmpty( i );
    input.getFieldName()[i] = ti.getText( 1 );
    input.getAscending()[i] = Utils.isEmpty( ti.getText( 2 ) ) || BaseMessages.getString( PKG, "System.Combo.Yes" ).equalsIgnoreCase( ti.getText( 2 ) );
    input.getCaseSensitive()[i] = BaseMessages.getString( PKG, "System.Combo.Yes" ).equalsIgnoreCase( ti.getText( 3 ) );
    input.getCollatorEnabled()[i] = BaseMessages.getString( PKG, "System.Combo.Yes" ).equalsIgnoreCase( ti.getText( 4 ) );
    if ( ti.getText( 5 ) == "" ) {
      input.getCollatorStrength()[i] = Integer.parseInt( BaseMessages.getString( PKG, "System.Combo.Primary" ) );
    } else {
      input.getCollatorStrength()[i] = Integer.parseInt( ti.getText( 5 ) );
    }
    input.getPreSortedField()[i] = BaseMessages.getString( PKG, "System.Combo.Yes" ).equalsIgnoreCase( ti.getText( 6 ) );
  }

  dispose();
}
 
Example 18
Source File: GetFieldsCapableStepDialog.java    From pentaho-kettle with Apache License 2.0 5 votes vote down vote up
default TableItem findTableItem( final String fieldName ) {
  for ( int i = 0; i < getFieldsTable().getTable().getItemCount(); i++ ) {
    final TableItem item = getFieldsTable().getTable().getItem( i );
    int fieldNameIndex = getFieldsTable().hasIndexColumn() ? 1 : 0;
    final String itemFieldName = item.getText( fieldNameIndex );
    if ( itemFieldName != null && itemFieldName.equals( fieldName ) ) {
      return item;
    }
  }
  return null;
}
 
Example 19
Source File: UnivariateStatsDialog.java    From hop with Apache License 2.0 4 votes vote down vote up
private void ok() {
  if ( Utils.isEmpty( m_wTransformName.getText() ) ) {
    return;
  }

  transformName = m_wTransformName.getText(); // return value

  int nrNonEmptyFields = m_wFields.nrNonEmpty();
  m_currentMeta.allocate( nrNonEmptyFields );

  for ( int i = 0; i < nrNonEmptyFields; i++ ) {
    TableItem item = m_wFields.getNonEmpty( i );

    String inputFieldName = item.getText( 1 );
    boolean n = item.getText( 2 ).equalsIgnoreCase( "True" );
    boolean mean = item.getText( 3 ).equalsIgnoreCase( "True" );
    boolean stdDev = item.getText( 4 ).equalsIgnoreCase( "True" );
    boolean min = item.getText( 5 ).equalsIgnoreCase( "True" );
    boolean max = item.getText( 6 ).equalsIgnoreCase( "True" );
    boolean median = item.getText( 7 ).equalsIgnoreCase( "True" );
    String percentileS = item.getText( 8 );
    double percentile = -1;
    if ( percentileS.length() > 0 ) {
      // try to parse percentile
      try {
        percentile = Double.parseDouble( percentileS );
        if ( percentile < 0 ) {
          percentile = -1;
        } else if ( percentile > 1 && percentile <= 100 ) {
          percentile /= 100;
        }
      } catch ( Exception ex ) {
        // Ignore errors
      }
    }
    boolean interpolate = item.getText( 9 ).equalsIgnoreCase( "True" );

    //CHECKSTYLE:Indentation:OFF
    m_currentMeta.getInputFieldMetaFunctions()[ i ] = new UnivariateStatsMetaFunction(
      inputFieldName, n, mean, stdDev, min, max, median, percentile, interpolate );
  }

  if ( !m_originalMeta.equals( m_currentMeta ) ) {
    m_currentMeta.setChanged();
    changed = m_currentMeta.hasChanged();
  }

  dispose();
}
 
Example 20
Source File: CombinationLookupDialog.java    From pentaho-kettle with Apache License 2.0 4 votes vote down vote up
private void getInfo( CombinationLookupMeta in ) {
  int nrkeys = wKey.nrNonEmpty();

  in.allocate( nrkeys );

  logDebug( BaseMessages.getString( PKG, "CombinationLookupDialog.Log.SomeKeysFound", String.valueOf( nrkeys ) ) );
  for ( int i = 0; i < nrkeys; i++ ) {
    TableItem item = wKey.getNonEmpty( i );
    //CHECKSTYLE:Indentation:OFF
    in.getKeyLookup()[ i ] = item.getText( 1 );
    in.getKeyField()[ i ] = item.getText( 2 );
  }

  in.setPreloadCache( wPreloadCache.getSelection() );
  in.setUseAutoinc( wAutoinc.getSelection() && wAutoinc.isEnabled() );
  in.setReplaceFields( wReplace.getSelection() );
  in.setUseHash( wHashcode.getSelection() );
  in.setHashField( wHashfield.getText() );
  in.setSchemaName( wSchema.getText() );
  in.setTablename( wTable.getText() );
  in.setTechnicalKeyField( wTk.getText() );
  if ( wAutoinc.getSelection() ) {
    in.setTechKeyCreation( CombinationLookupMeta.CREATION_METHOD_AUTOINC );
    in.setUseAutoinc( true ); // for downwards compatibility
    in.setSequenceFrom( null );
  } else if ( wSeqButton.getSelection() ) {
    in.setTechKeyCreation( CombinationLookupMeta.CREATION_METHOD_SEQUENCE );
    in.setUseAutoinc( false );
    in.setSequenceFrom( wSeq.getText() );
  } else { // all the rest
    in.setTechKeyCreation( CombinationLookupMeta.CREATION_METHOD_TABLEMAX );
    in.setUseAutoinc( false );
    in.setSequenceFrom( null );
  }

  in.setDatabaseMeta( transMeta.findDatabase( wConnection.getText() ) );

  in.setCommitSize( Const.toInt( wCommit.getText(), 0 ) );
  in.setCacheSize( Const.toInt( wCachesize.getText(), 0 ) );

  in.setLastUpdateField( wLastUpdateField.getText() );
}