optionLabel.setLayoutData( urlLabelData ); CCombo schemaCombo = new CCombo( runConfigurationDialog.getGroup(), SWT.SINGLE | SWT.READ_ONLY | SWT.BORDER ); for ( String schema : schemas ) { schemaCombo.add( schema );
protected CCombo addStandardSelect( String labelMessageKey, Control prevControl, String[] choices ) { int vertPad = verticalPadding; Label label = addStandardLabel( labelMessageKey, prevControl ); verticalPadding = vertPad; CCombo combo = new CCombo( shell, SWT.BORDER ); combo.setItems( choices ); combo.addModifyListener( lsMod ); combo.setLayoutData( standardInputSpacing( prevControl, label ) ); return combo; }
protected CCombo addStandardSelect( String labelMessageKey, Control prevControl, String[] choices ) { int vertPad = verticalPadding; addStandardLabel( labelMessageKey, prevControl ); verticalPadding = vertPad; CCombo combo = new CCombo( shell, SWT.BORDER ); combo.setItems( choices ); combo.addModifyListener( lsMod ); combo.setLayoutData( standardInputSpacing( prevControl ) ); return combo; }
protected void runConfigurationSectionLayout( Class<?> PKG, String prefix ) { cRunConfiguration = new Composite( shell, SWT.NONE ); cRunConfiguration.setLayout( new FormLayout() ); props.setLook( cRunConfiguration ); FormData fdLocal = new FormData(); fdLocal.top = new FormAttachment( 0, 15 ); fdLocal.right = new FormAttachment( 100, -15 ); fdLocal.left = new FormAttachment( 0, 15 ); cRunConfiguration.setBackground( shell.getBackground() ); // the default looks ugly cRunConfiguration.setLayoutData( fdLocal ); Label wlRunConfiguration = new Label( cRunConfiguration, SWT.LEFT ); props.setLook( wlRunConfiguration ); wlRunConfiguration.setText( "Run configuration:" ); FormData fdlRunConfiguration = new FormData(); fdlRunConfiguration.top = new FormAttachment( 0 ); fdlRunConfiguration.left = new FormAttachment( 0 ); wlRunConfiguration.setLayoutData( fdlRunConfiguration ); wRunConfiguration = new CCombo( cRunConfiguration, SWT.BORDER ); props.setLook( wRunConfiguration ); FormData fdRunConfiguration = new FormData(); fdRunConfiguration.width = 200; fdRunConfiguration.top = new FormAttachment( wlRunConfiguration, 5 ); fdRunConfiguration.left = new FormAttachment( 0 ); wRunConfiguration.setLayoutData( fdRunConfiguration ); }
wlLocation.setText( BaseMessages.getString( PKG, "VfsFileChooserControls.Location.Label" ) ); wlLocation.setLayoutData( new FormDataBuilder( ).left( 0, 0 ).top( 0, 0 ).result() ); wLocation = new CCombo( this, SWT.BORDER | SWT.READ_ONLY ); List<VFSScheme> availableVFSSchemes = getAvailableVFSSchemes(); availableVFSSchemes.forEach( scheme -> wLocation.add( scheme.schemeName ) );
wCombo = new CCombo( this, textFlags ); FormData fdText = new FormData(); fdText.left = new FormAttachment( middle, margin );
private CCombo createLineCombo( ModifyListener lsMod, String lableText, Control prevControl ) { // Value line Label lable = new Label( shell, SWT.RIGHT ); lable.setText( lableText ); props.setLook( lable ); FormData lableFormData = new FormData(); lableFormData.left = new FormAttachment( 0, 0 ); lableFormData.right = new FormAttachment( props.getMiddlePct(), -Const.MARGIN ); // In case it is the first control if ( prevControl != null ) { lableFormData.top = new FormAttachment( prevControl, Const.MARGIN ); } else { lableFormData.top = new FormAttachment( 0, Const.MARGIN ); } lable.setLayoutData( lableFormData ); CCombo control = new CCombo( shell, SWT.BORDER ); props.setLook( control ); control.addModifyListener( lsMod ); FormData widgetFormData = new FormData(); widgetFormData.left = new FormAttachment( props.getMiddlePct(), 0 ); // In case it is the first control if ( prevControl != null ) { widgetFormData.top = new FormAttachment( prevControl, Const.MARGIN ); } else { widgetFormData.top = new FormAttachment( 0, Const.MARGIN ); } widgetFormData.right = new FormAttachment( 100, 0 ); control.setLayoutData( widgetFormData ); return control; }
wText.setToolTipText( toolTipText ); wTimeUnit = new CCombo( this, SWT.SINGLE | SWT.DROP_DOWN | SWT.BORDER | SWT.LEFT ); FormData fdCombo = new FormData(); fdCombo.left = new FormAttachment( threeQuarters, margin );
joinTypeCombo = new CCombo( shell, SWT.BORDER ); props.setLook( joinTypeCombo );
wlLogLevel.setLayoutData( fdlLogLevel ); wLogLevel = new CCombo( gDetails, SWT.READ_ONLY | SWT.BORDER ); wLogLevel.setToolTipText( BaseMessages.getString( PKG, "TransExecutionConfigurationDialog.LogLevel.Tooltip" ) ); props.setLook( wLogLevel );
wInputStepArray[index] = new CCombo( shell, SWT.BORDER ); props.setLook( wInputStepArray[index] );
wlLogLevel.setLayoutData( fdlLogLevel ); wLogLevel = new CCombo( gDetails, SWT.READ_ONLY | SWT.BORDER ); wLogLevel.setToolTipText( BaseMessages.getString( PKG, "JobExecutionConfigurationDialog.LogLevel.Tooltip" ) ); props.setLook( wLogLevel ); lblStartJob.setLayoutData( fd_lblStartJob ); wStartCopy = new CCombo( gDetails, SWT.READ_ONLY | SWT.BORDER ); wStartCopy.setToolTipText( BaseMessages.getString( PKG, "JobExecutionConfigurationDialog.StartCopy.Tooltip" ) ); props.setLook( wStartCopy );
wlGroupField.setLayoutData( fdlGroupField ); wGroupField = new CCombo( wInputComposite, SWT.SINGLE | SWT.LEFT | SWT.BORDER ); props.setLook( wGroupField ); wGroupField.addModifyListener( lsMod );
wlGroupField.setLayoutData( fdlGroupField ); wGroupField = new CCombo( wInputComposite, SWT.SINGLE | SWT.LEFT | SWT.BORDER ); props.setLook( wGroupField ); wGroupField.addModifyListener( lsMod );
wlSubjectMessage.setLayoutData( fdlFields ); wSubject = new CCombo( shell, SWT.LEFT | SWT.READ_ONLY | SWT.BORDER ); wSubject.setItems( subjects ); wSubject.setText( selectedSubject );
wlResultFilesTarget.setLayoutData( fdlResultFilesTarget ); wResultFilesTarget = new CCombo( wInputComposite, SWT.SINGLE | SWT.LEFT | SWT.BORDER ); props.setLook( wResultFilesTarget ); wResultFilesTarget.addModifyListener( lsMod );
wlResultFilesTarget.setLayoutData( fdlResultFilesTarget ); wResultFilesTarget = new CCombo( wInputComposite, SWT.SINGLE | SWT.LEFT | SWT.BORDER ); props.setLook( wResultFilesTarget ); wResultFilesTarget.addModifyListener( lsMod );
wlResultRowsTarget.setLayoutData( fdlResultRowsTarget ); wOutputRowsSource = new CCombo( wInputComposite, SWT.SINGLE | SWT.LEFT | SWT.BORDER ); props.setLook( wOutputRowsSource ); wOutputRowsSource.addModifyListener( lsMod );
wlResultRowsTarget.setLayoutData( fdlResultRowsTarget ); wResultRowsTarget = new CCombo( wInputComposite, SWT.SINGLE | SWT.LEFT | SWT.BORDER ); props.setLook( wResultRowsTarget ); wResultRowsTarget.addModifyListener( lsMod );
wCombo = new CCombo( this, flags );