private void getSteps() { Cursor busy = new Cursor( shell.getDisplay(), SWT.CURSOR_WAIT ); shell.setCursor( busy ); String fieldStep = wSourceStep.getText(); wSourceStep.removeAll(); wSourceStep.setItems( transMeta.getPrevStepNames( stepMeta ) ); wSourceStep.setText( fieldStep ); shell.setCursor( null ); busy.dispose(); }
btnRadioButton.setText(RedisClient.i18nFile.getText(I18nFile.TEXT)); final Combo textType = new Combo(grpValueType, SWT.DROP_DOWN | SWT.READ_ONLY); textType.setItems(new String[] { RedisClient.i18nFile.getText(I18nFile.PLAINTEXT), RedisClient.i18nFile.getText(I18nFile.JSON), RedisClient.i18nFile.getText(I18nFile.XML) }); textType.select(0); final Combo imageType = new Combo(grpValueType, SWT.DROP_DOWN | SWT.READ_ONLY); imageType.setEnabled(false); imageType.setItems(new String[] { RedisClient.i18nFile.getText(I18nFile.BASE64IMAGE) });
comboElementType.setItems( new String[]{ "Numeric", "String" } ); comboElementType.select( 0 ); if ( meta.getElementType() != null ) {
private void getFields() { Cursor busy = new Cursor( shell.getDisplay(), SWT.CURSOR_WAIT ); shell.setCursor( busy ); try { String sourceStepName = wSourceStep.getText(); if ( !Utils.isEmpty( sourceStepName ) ) { String fieldName = wSourceField.getText(); RowMetaInterface r = transMeta.getStepFields( sourceStepName ); if ( r != null ) { wSourceField.setItems( r.getFieldNames() ); } wSourceField.setText( fieldName ); } shell.setCursor( null ); busy.dispose(); } catch ( KettleException ke ) { shell.setCursor( null ); busy.dispose(); new ErrorDialog( shell, BaseMessages.getString( PKG, "ValidatorDialog.FailedToGetFields.DialogTitle" ), BaseMessages .getString( PKG, "ValidatorDialog.FailedToGetFields.DialogMessage" ), ke ); } } }
buttonPreloadDimensionCache.setEnabled( buttonEnableDimensionCache.getSelection() ); comboMeasureType.setItems( new String[]{ "Numeric", "String" } ); comboMeasureType.select( 0 ); if ( meta.getMeasureType() != null ) {
wlDefaultLocale.setLayoutData( fdlDefaultLocale ); wDefaultLocale = new Combo( wLookComp, SWT.SINGLE | SWT.READ_ONLY | SWT.LEFT | SWT.BORDER ); wDefaultLocale.setItems( GlobalMessages.localeDescr ); props.setLook( wDefaultLocale ); FormData fdDefaultLocale = new FormData();
wEncoding.setItems( GPLoadMeta.SUPPORTED_ENCODINGS ); props.setLook( wEncoding ); FormData fdEncoding = new FormData();
comboMeasureType.setItems( new String[]{ "String", "Number" } ); if ( meta.getCubeMeasure() != null ) { if ( meta.getCubeMeasure().getFieldType() != null ) {
wFieldSeparator.setItems( fieldSeparators ); props.setLook( wFieldSeparator ); wFieldSeparator.addModifyListener( lsMod ); wFieldEnclosure.setItems( fieldEnclosures ); wFieldEnclosure.addModifyListener( lsMod ); wNULLrepresentation.setItems( nullRepresentations ); wNULLrepresentation.addModifyListener( lsMod ); wEncoding.setItems( encodings ); props.setLook( wEncoding ); wEncoding.addModifyListener( lsMod );
wEncoding = new Combo( shell, SWT.SINGLE | SWT.LEFT | SWT.BORDER ); wEncoding.setToolTipText( BaseMessages.getString( PKG, "GPBulkLoaderDialog.Encoding.Tooltip" ) ); wEncoding.setItems( encodings ); props.setLook( wEncoding ); fdEncoding = new FormData();
wEncoding = new Combo( comp, SWT.SINGLE | SWT.LEFT | SWT.BORDER ); wEncoding.setToolTipText( BaseMessages.getString( PKG, "OraBulkLoaderDialog.Encoding.Tooltip" ) ); wEncoding.setItems( encodings ); props.setLook( wEncoding ); fdEncoding = new FormData(); wCharacterSetName .setToolTipText( BaseMessages.getString( PKG, "OraBulkLoaderDialog.CharacterSetName.Tooltip" ) ); wCharacterSetName.setItems( characterSetNames ); props.setLook( wCharacterSetName ); fdCharacterSetName = new FormData();
wlDataType.setLayoutData( fdlDataType ); wDataType = new Combo( wgType, SWT.SINGLE | SWT.LEFT | SWT.BORDER ); wDataType.setItems( ValueMetaFactory.getValueMetaNames() ); props.setLook( wDataType ); FormData fdDataType = new FormData();
zoomLabel.setItems( TransPainter.magnificationDescriptions ); zoomLabel.addSelectionListener( new SelectionAdapter() { public void widgetSelected( SelectionEvent arg0 ) {
wControlEncoding = new Combo( wAdvancedSettings, SWT.SINGLE | SWT.LEFT | SWT.BORDER ); wControlEncoding.setToolTipText( BaseMessages.getString( PKG, "JobFTPPUT.ControlEncoding.Tooltip" ) ); wControlEncoding.setItems( encodings ); props.setLook( wControlEncoding ); fdControlEncoding = new FormData();
wControlEncoding = new Combo( wAdvancedSettings, SWT.SINGLE | SWT.LEFT | SWT.BORDER ); wControlEncoding.setToolTipText( BaseMessages.getString( PKG, "JobFTP.ControlEncoding.Tooltip" ) ); wControlEncoding.setItems( encodings ); props.setLook( wControlEncoding ); fdControlEncoding = new FormData();
zoomLabel.setItems( TransPainter.magnificationDescriptions ); zoomLabel.addSelectionListener( new SelectionAdapter() { @Override
public void setItems(String[] items) { if (combo instanceof Combo) ((Combo) combo).setItems(items); else ((CCombo) combo).setItems(items); }
/** * Sets the combo items. Triggers a dialog-changed event. */ public void setItems(String[] items) { fItems= items; if (isOkToUse(fComboControl)) { fComboControl.setItems(items); } dialogFieldChanged(); }
private void updateQueueLocationCombo() { if (cmbQueueLocation == null) return; String[] sItemsText = new String[MSGKEY_QUEUELOCATIONS.length]; for (int i = 0; i < MSGKEY_QUEUELOCATIONS.length; i++) { String sText = MessageText.getString(MSGKEY_QUEUELOCATIONS[i]); sItemsText[i] = sText; } cmbQueueLocation.setItems(sItemsText); cmbQueueLocation.select(torrentOptions.getQueueLocation()); }