private void buildProperiesTab() { CTabItem wPropertiesTab = new CTabItem( wTabFolder, SWT.NONE ); wPropertiesTab.setText( BaseMessages.getString( PKG, "JmsProducerDialog.Properties.Tab" ) ); Composite wPropertiesComp = new Composite( wTabFolder, SWT.NONE ); props.setLook( wPropertiesComp ); FormLayout fieldsLayout = new FormLayout(); fieldsLayout.marginHeight = 15; fieldsLayout.marginWidth = 15; wPropertiesComp.setLayout( fieldsLayout ); FormData propertiesFormData = new FormData(); propertiesFormData.left = new FormAttachment( 0, 0 ); propertiesFormData.top = new FormAttachment( wPropertiesComp, 0 ); propertiesFormData.right = new FormAttachment( 100, 0 ); propertiesFormData.bottom = new FormAttachment( 100, 0 ); wPropertiesComp.setLayoutData( propertiesFormData ); buildPropertiesTable( wPropertiesComp ); wPropertiesComp.layout(); wPropertiesTab.setControl( wPropertiesComp ); }
label.setText( BaseMessages.getString( PKG, "TransLog.Dialog.PerformanceMonitoringNotEnabled.Message" ) ); label.setBackground( perfComposite.getBackground() ); label.setFont( GUIResource.getInstance().getFontMedium() ); FormData fdLabel = new FormData(); fdLabel.left = new FormAttachment( 5, 0 ); fdLabel.right = new FormAttachment( 95, 0 ); fdLabel.top = new FormAttachment( 5, 0 ); label.setLayoutData( fdLabel ); button.setText( BaseMessages.getString( PKG, "TransLog.Dialog.PerformanceMonitoring.Button" ) ); button.setBackground( perfComposite.getBackground() ); button.setFont( GUIResource.getInstance().getFontMedium() ); FormData fdButton = new FormData(); fdButton.left = new FormAttachment( 40, 0 ); fdButton.right = new FormAttachment( 60, 0 ); button.setLayoutData( fdButton ); perfComposite.layout( true, true );
/** * maximizeBrowser * * @param browser * the browser object to maximize. We try to take up as much of the Spoon window as possible. */ private static void maximizeExpandedContent( Browser browser ) { SashForm sash = (SashForm) spoonInstance().getDesignParent(); int[] weights = sash.getWeights(); int[] savedSashWeights = new int[weights.length]; System.arraycopy( weights, 0, savedSashWeights, 0, weights.length ); spoonInstance().getTabSet().getSelected().setSashWeights( savedSashWeights ); weights[0] = 0; weights[1] = 1000; sash.setWeights( weights ); FormData formData = new FormData(); formData.top = new FormAttachment( 0, 0 ); formData.left = new FormAttachment( 0, 0 ); formData.bottom = new FormAttachment( 100, 0 ); formData.right = new FormAttachment( 100, 0 ); browser.setLayoutData( formData ); browser.getParent().layout( true ); browser.getParent().redraw(); } }
private void buildFieldsTab() { CTabItem wFieldsTab = new CTabItem( wTabFolder, SWT.NONE, 3 ); wFieldsTab.setText( BaseMessages.getString( PKG, "MQTTConsumerDialog.FieldsTab" ) ); Composite wFieldsComp = new Composite( wTabFolder, SWT.NONE ); props.setLook( wFieldsComp ); FormLayout fieldsLayout = new FormLayout(); fieldsLayout.marginHeight = 15; fieldsLayout.marginWidth = 15; wFieldsComp.setLayout( fieldsLayout ); FormData fieldsFormData = new FormData(); fieldsFormData.left = new FormAttachment( 0, 0 ); fieldsFormData.top = new FormAttachment( wFieldsComp, 0 ); fieldsFormData.right = new FormAttachment( 100, 0 ); fieldsFormData.bottom = new FormAttachment( 100, 0 ); wFieldsComp.setLayoutData( fieldsFormData ); buildFieldTable( wFieldsComp, wFieldsComp ); wFieldsComp.layout(); wFieldsTab.setControl( wFieldsComp ); }
control.dispose(); wComposite.layout( true, true ); new LabelText( wComposite, BaseMessages.getString( PKG, "TransDebugDialog.RowCount.Label" ), BaseMessages .getString( PKG, "TransDebugDialog.RowCount.ToolTip" ) ); FormData fdRowCount = new FormData(); fdRowCount.left = new FormAttachment( 0, 0 ); fdRowCount.right = new FormAttachment( 100, 0 ); fdRowCount.top = new FormAttachment( 0, 0 ); wRowCount.setLayoutData( fdRowCount ); wRowCount.addSelectionListener( new SelectionAdapter() { wFirstRows.setText( BaseMessages.getString( PKG, "TransDebugDialog.FirstRows.Label" ) ); wFirstRows.setToolTipText( BaseMessages.getString( PKG, "TransDebugDialog.FirstRows.ToolTip" ) ); FormData fdFirstRows = new FormData(); fdFirstRows.left = new FormAttachment( middle, 0 ); fdFirstRows.right = new FormAttachment( 100, 0 ); wPauseBreakPoint.setText( BaseMessages.getString( PKG, "TransDebugDialog.PauseBreakPoint.Label" ) ); wPauseBreakPoint.setToolTipText( BaseMessages.getString( PKG, "TransDebugDialog.PauseBreakPoint.ToolTip" ) ); FormData fdPauseBreakPoint = new FormData(); fdPauseBreakPoint.left = new FormAttachment( middle, 0 ); fdPauseBreakPoint.right = new FormAttachment( 100, 0 ); wComposite.layout( true, true );
private void buildSetupTab() { wSetupTab = new CTabItem( wTabFolder, SWT.NONE ); wSetupTab.setText( BaseMessages.getString( PKG, "BaseStreamingDialog.SetupTab" ) ); wSetupComp = new Composite( wTabFolder, SWT.NONE ); props.setLook( wSetupComp ); FormLayout setupLayout = new FormLayout(); setupLayout.marginHeight = 15; setupLayout.marginWidth = 15; wSetupComp.setLayout( setupLayout ); buildSetup( wSetupComp ); FormData fdSetupComp = new FormData(); fdSetupComp.left = new FormAttachment( 0, 0 ); fdSetupComp.top = new FormAttachment( 0, 0 ); fdSetupComp.right = new FormAttachment( 100, 0 ); fdSetupComp.bottom = new FormAttachment( 100, 0 ); wSetupComp.setLayoutData( fdSetupComp ); wSetupComp.layout(); wSetupTab.setControl( wSetupComp ); }
wlLogTimeout.setText( BaseMessages.getString( PKG, "TransDialog.LogTimeout.Label" ) ); wlLogTimeout.setToolTipText( BaseMessages.getString( PKG, "TransDialog.LogTimeout.Tooltip" ) ); props.setLook( wlLogTimeout ); FormData fdlLogTimeout = new FormData(); fdlLogTimeout.left = new FormAttachment( 0, 0 ); fdlLogTimeout.right = new FormAttachment( middle, -margin ); fdlLogTimeout.top = new FormAttachment( wLogTable, margin ); wlLogTimeout.setLayoutData( fdlLogTimeout ); wLogTimeout = new TextVar( transMeta, wLogOptionsComposite, SWT.SINGLE | SWT.LEFT | SWT.BORDER ); wLogTimeout.setToolTipText( BaseMessages.getString( PKG, "TransDialog.LogTimeout.Tooltip" ) ); props.setLook( wLogTimeout ); wLogTimeout.addModifyListener( lsMod ); FormData fdLogTimeout = new FormData(); fdLogTimeout.left = new FormAttachment( middle, 0 ); fdLogTimeout.top = new FormAttachment( wLogTable, margin ); wlFields.setText( BaseMessages.getString( PKG, "TransDialog.TransLogTable.Fields.Label" ) ); props.setLook( wlFields ); FormData fdlFields = new FormData(); fdlFields.left = new FormAttachment( 0, 0 ); fdlFields.top = new FormAttachment( wLogTimeout, margin * 2 ); wLogOptionsComposite.layout( true, true ); wLogComp.layout( true, true );
public void buildFieldsTab() { checkArgument( wTabFolder.getItemCount() > 0 ); CTabItem wFieldsTab = new CTabItem( wTabFolder, SWT.NONE, wTabFolder.getItemCount() - 1 ); wFieldsTab.setText( BaseMessages.getString( PKG, "JmsConsumerDialog.FieldsTab" ) ); Composite wFieldsComp = new Composite( wTabFolder, SWT.NONE ); props.setLook( wFieldsComp ); FormLayout fieldsLayout = new FormLayout(); fieldsLayout.marginHeight = 15; fieldsLayout.marginWidth = 15; wFieldsComp.setLayout( fieldsLayout ); FormData fieldsFormData = new FormData(); fieldsFormData.left = new FormAttachment( 0, 0 ); fieldsFormData.top = new FormAttachment( wFieldsComp, 0 ); fieldsFormData.right = new FormAttachment( 100, 0 ); fieldsFormData.bottom = new FormAttachment( 100, 0 ); wFieldsComp.setLayoutData( fieldsFormData ); buildFieldTable( wFieldsComp, wFieldsComp ); wFieldsComp.layout(); wFieldsTab.setControl( wFieldsComp ); }
wlLogTimeout.setText( BaseMessages.getString( PKG, "TransDialog.LogTimeout.Label" ) ); wlLogTimeout.setToolTipText( BaseMessages.getString( PKG, "TransDialog.LogTimeout.Tooltip" ) ); props.setLook( wlLogTimeout ); FormData fdlLogTimeout = new FormData(); fdlLogTimeout.left = new FormAttachment( 0, 0 ); fdlLogTimeout.right = new FormAttachment( middle, -margin ); fdlLogTimeout.top = new FormAttachment( wLogTable, margin ); wlLogTimeout.setLayoutData( fdlLogTimeout ); wLogTimeout = new TextVar( transMeta, wLogOptionsComposite, SWT.SINGLE | SWT.LEFT | SWT.BORDER ); wLogTimeout.setToolTipText( BaseMessages.getString( PKG, "TransDialog.LogTimeout.Tooltip" ) ); props.setLook( wLogTimeout ); wLogTimeout.addModifyListener( lsMod ); FormData fdLogTimeout = new FormData(); fdLogTimeout.left = new FormAttachment( middle, 0 ); fdLogTimeout.top = new FormAttachment( wLogTable, margin ); wlFields.setText( BaseMessages.getString( PKG, "TransDialog.TransLogTable.Fields.Label" ) ); props.setLook( wlFields ); FormData fdlFields = new FormData(); fdlFields.left = new FormAttachment( 0, 0 ); fdlFields.top = new FormAttachment( wLogTimeout, margin * 2 ); wLogOptionsComposite.layout( true, true ); wLogComp.layout( true, true );
/** */ private void addGeneralTab() { wGeneralTab = new CTabItem( wTabFolder, SWT.NONE ); wGeneralTab.setText( BaseMessages.getString( PKG, "ElasticSearchBulkDialog.General.Tab" ) ); wGeneralComp = new Composite( wTabFolder, SWT.NONE ); props.setLook( wGeneralComp ); FormLayout generalLayout = new FormLayout(); generalLayout.marginWidth = 3; generalLayout.marginHeight = 3; wGeneralComp.setLayout( generalLayout ); // Index GROUP fillIndexGroup( wGeneralComp ); // Options GROUP fillOptionsGroup( wGeneralComp ); fdGeneralComp = new FormData(); fdGeneralComp.left = new FormAttachment( 0, 0 ); fdGeneralComp.top = new FormAttachment( wStepname, Const.MARGIN ); fdGeneralComp.right = new FormAttachment( 100, 0 ); fdGeneralComp.bottom = new FormAttachment( 100, 0 ); wGeneralComp.setLayoutData( fdGeneralComp ); wGeneralComp.layout(); wGeneralTab.setControl( wGeneralComp ); }
wlLogTimeout.setText( BaseMessages.getString( PKG, "TransDialog.LogTimeout.Label" ) ); wlLogTimeout.setToolTipText( BaseMessages.getString( PKG, "TransDialog.LogTimeout.Tooltip" ) ); props.setLook( wlLogTimeout ); FormData fdlLogTimeout = new FormData(); fdlLogTimeout.left = new FormAttachment( 0, 0 ); fdlLogTimeout.right = new FormAttachment( middle, -margin ); fdlLogTimeout.top = new FormAttachment( wLogTable, margin ); wlLogTimeout.setLayoutData( fdlLogTimeout ); wLogTimeout = new TextVar( transMeta, wLogOptionsComposite, SWT.SINGLE | SWT.LEFT | SWT.BORDER ); wLogTimeout.setToolTipText( BaseMessages.getString( PKG, "TransDialog.LogTimeout.Tooltip" ) ); props.setLook( wLogTimeout ); wLogTimeout.addModifyListener( lsMod ); FormData fdLogTimeout = new FormData(); fdLogTimeout.left = new FormAttachment( middle, 0 ); fdLogTimeout.top = new FormAttachment( wLogTable, margin ); wlFields.setText( BaseMessages.getString( PKG, "TransDialog.TransLogTable.Fields.Label" ) ); props.setLook( wlFields ); FormData fdlFields = new FormData(); fdlFields.left = new FormAttachment( 0, 0 ); fdlFields.top = new FormAttachment( wLogTimeout, margin * 2 ); wLogOptionsComposite.layout( true, true ); wLogComp.layout( true, true );
private void buildResultsTab() { wResultsTab = new CTabItem( wTabFolder, SWT.NONE ); wResultsTab.setText( BaseMessages.getString( PKG, "BaseStreamingDialog.ResultsTab" ) ); wResultsComp = new Composite( wTabFolder, SWT.NONE ); props.setLook( wResultsComp ); FormLayout resultsLayout = new FormLayout(); resultsLayout.marginHeight = 15; resultsLayout.marginWidth = 15; wResultsComp.setLayout( resultsLayout ); FormData fdlSubTrans = new FormData(); fdlSubTrans.left = new FormAttachment( 0, 0 ); fdlSubTrans.top = new FormAttachment( 0, 0 ); wlSubStep.setLayoutData( fdlSubTrans ); wlSubStep.setText( BaseMessages.getString( PKG, "BaseStreaming.Dialog.Transformation.SubTransStep" ) ); FormData fdSubStep = new FormData(); fdSubStep.left = new FormAttachment( 0, 0 ); fdSubStep.top = new FormAttachment( wlSubStep, 5 ); wResultsComp.layout(); wResultsTab.setControl( wResultsComp );
wlLogInterval.setText( BaseMessages.getString( PKG, "TransDialog.LogInterval.Label" ) ); props.setLook( wlLogInterval ); FormData fdlLogInterval = new FormData(); fdlLogInterval.left = new FormAttachment( 0, 0 ); fdlLogInterval.right = new FormAttachment( middle, -margin ); fdlLogInterval.top = new FormAttachment( wLogTable, margin ); wlLogInterval.setLayoutData( fdlLogInterval ); wLogInterval = new TextVar( transMeta, wLogOptionsComposite, SWT.SINGLE | SWT.LEFT | SWT.BORDER ); props.setLook( wLogInterval ); wLogInterval.addModifyListener( lsMod ); FormData fdLogInterval = new FormData(); fdLogInterval.left = new FormAttachment( middle, 0 ); fdLogInterval.top = new FormAttachment( wLogTable, margin ); wlLogTimeout.setText( BaseMessages.getString( PKG, "TransDialog.LogTimeout.Label" ) ); wlLogTimeout.setToolTipText( BaseMessages.getString( PKG, "TransDialog.LogTimeout.Tooltip" ) ); props.setLook( wlLogTimeout ); FormData fdlLogTimeout = new FormData(); fdlLogTimeout.left = new FormAttachment( 0, 0 ); fdlLogTimeout.right = new FormAttachment( middle, -margin ); wLogOptionsComposite.layout( true, true ); wLogComp.layout( true, true );
private void addSettingsTab() { wSettingsTab = new CTabItem( wTabFolder, SWT.NONE ); wSettingsTab.setText( BaseMessages.getString( PKG, "ElasticSearchBulkDialog.SettingsTab.TabTitle" ) ); FormLayout serversLayout = new FormLayout(); serversLayout.marginWidth = Const.FORM_MARGIN; serversLayout.marginHeight = Const.FORM_MARGIN; Composite wSettingsComp = new Composite( wTabFolder, SWT.NONE ); wSettingsComp.setLayout( serversLayout ); props.setLook( wSettingsComp ); new ColumnInfo( BaseMessages.getString( PKG, "ElasticSearchBulkDialog.SettingsTab.Property.Column" ), ColumnInfo.COLUMN_TYPE_TEXT, false ); columnsMeta[1] = new ColumnInfo( BaseMessages.getString( PKG, "ElasticSearchBulkDialog.SettingsTab.Value.Column" ), ColumnInfo.COLUMN_TYPE_TEXT, false ); columnsMeta[1].setUsingVariables( true ); FormData fdServersComp = new FormData(); wSettingsComp.setLayoutData( fdServersComp ); wSettingsComp.layout(); wSettingsTab.setControl( wSettingsComp );
wlLogInterval.setText( BaseMessages.getString( PKG, "TransDialog.LogInterval.Label" ) ); props.setLook( wlLogInterval ); FormData fdlLogInterval = new FormData(); fdlLogInterval.left = new FormAttachment( 0, 0 ); fdlLogInterval.right = new FormAttachment( middle, -margin ); fdlLogInterval.top = new FormAttachment( wLogTable, margin ); wlLogInterval.setLayoutData( fdlLogInterval ); wLogInterval = new TextVar( transMeta, wLogOptionsComposite, SWT.SINGLE | SWT.LEFT | SWT.BORDER ); props.setLook( wLogInterval ); wLogInterval.addModifyListener( lsMod ); FormData fdLogInterval = new FormData(); fdLogInterval.left = new FormAttachment( middle, 0 ); fdLogInterval.top = new FormAttachment( wLogTable, margin ); wlLogTimeout.setText( BaseMessages.getString( PKG, "TransDialog.LogTimeout.Label" ) ); wlLogTimeout.setToolTipText( BaseMessages.getString( PKG, "TransDialog.LogTimeout.Tooltip" ) ); props.setLook( wlLogTimeout ); FormData fdlLogTimeout = new FormData(); fdlLogTimeout.left = new FormAttachment( 0, 0 ); fdlLogTimeout.right = new FormAttachment( middle, -margin ); wLogOptionsComposite.layout( true, true ); wLogComp.layout( true, true );
void buildSecurityTab() { CTabItem wSecurityTab = new CTabItem( wTabFolder, SWT.NONE, 1 ); wSecurityTab.setText( BaseMessages.getString( PKG, "MQTTDialog.Security.Tab" ) ); Composite wSecurityComp = new Composite( wTabFolder, SWT.NONE ); props.setLook( wSecurityComp ); FormLayout securityLayout = new FormLayout(); securityLayout.marginHeight = 15; securityLayout.marginWidth = 15; wSecurityComp.setLayout( securityLayout ); getString( PKG, "MQTTDialog.Security.Authentication" ), getString( PKG, "MQTTDialog.Security.Username" ), FormData fdUseSSL = new FormData(); fdUseSSL.top = new FormAttachment( authComposite, 15 ); fdUseSSL.left = new FormAttachment( 0, 0 ); wUseSSL.setLayoutData( fdUseSSL ); wUseSSL.addSelectionListener( new SelectionListener() { FormData fdlSSLProperties = new FormData(); fdlSSLProperties.top = new FormAttachment( wUseSSL, 10 ); FormData fdSecurityComp = new FormData(); wSecurityComp.setLayoutData( fdSecurityComp ); wSecurityComp.layout(); wSecurityTab.setControl( wSecurityComp );
wDepTab.setText( BaseMessages.getString( PKG, "TransDialog.DepTab.Label" ) ); FormLayout DepLayout = new FormLayout(); DepLayout.marginWidth = Const.MARGIN; DepLayout.marginHeight = Const.MARGIN; Composite wDepComp = new Composite( wTabFolder, SWT.NONE ); props.setLook( wDepComp ); wDepComp.setLayout( DepLayout ); colinf[0] = new ColumnInfo( BaseMessages.getString( PKG, "TransDialog.ColumnInfo.Connection.Label" ), ColumnInfo.COLUMN_TYPE_CCOMBO, connectionNames ); colinf[1] = fdGet = new FormData(); fdGet.bottom = new FormAttachment( 100, 0 ); FormData fdFields = new FormData(); wDepComp.setLayoutData( fdDepComp ); wDepComp.layout(); wDepTab.setControl( wDepComp );
wSettingsTab.setText( BaseMessages.getString( PKG, "JobDialog.SettingsTab.Label" ) ); FormLayout LogLayout = new FormLayout(); LogLayout.marginWidth = Const.MARGIN; LogLayout.marginHeight = Const.MARGIN; Composite wSettingsComp = new Composite( wTabFolder, SWT.NONE ); props.setLook( wSettingsComp ); wSettingsComp.setLayout( LogLayout ); wlSharedObjectsFile.setText( BaseMessages.getString( PKG, "JobDialog.SharedObjectsFile.Label" ) ); props.setLook( wlSharedObjectsFile ); FormData fdlSharedObjectsFile = new FormData(); fdlSharedObjectsFile.left = new FormAttachment( 0, 0 ); fdlSharedObjectsFile.right = new FormAttachment( middle, -margin ); fdLogComp.right = new FormAttachment( 100, 0 ); fdLogComp.bottom = new FormAttachment( 100, 0 ); wSettingsComp.setLayoutData( fdLogComp ); wSettingsComp.layout(); wSettingsTab.setControl( wSettingsComp );
wParamTab.setText( BaseMessages.getString( PKG, "JobDialog.ParamTab.Label" ) ); FormLayout paramLayout = new FormLayout(); paramLayout.marginWidth = Const.MARGIN; paramLayout.marginHeight = Const.MARGIN; Composite wParamComp = new Composite( wTabFolder, SWT.NONE ); props.setLook( wParamComp ); wParamComp.setLayout( paramLayout ); jobMeta, wParamComp, SWT.BORDER | SWT.FULL_SELECTION | SWT.MULTI, colinf, FieldsRows, lsMod, props ); FormData fdFields = new FormData(); fdFields.left = new FormAttachment( 0, 0 ); wParamFields.setLayoutData( fdFields ); FormData fdDepComp = new FormData(); wParamComp.setLayoutData( fdDepComp ); wParamComp.layout(); wParamTab.setControl( wParamComp );
wFilterTab.setText( BaseMessages.getString( PKG, "TextFileInputDialog.FilterTab.TabTitle" ) ); FormLayout FilterLayout = new FormLayout(); FilterLayout.marginWidth = Const.FORM_MARGIN; FilterLayout.marginHeight = Const.FORM_MARGIN; wFilterComp = new Composite( wTabFolder, SWT.NONE ); wFilterComp.setLayout( FilterLayout ); props.setLook( wFilterComp ); new ColumnInfo[] { new ColumnInfo( BaseMessages.getString( PKG, "TextFileInputDialog.FilterStringColumn.Column" ), ColumnInfo.COLUMN_TYPE_TEXT, false ), new ColumnInfo( BaseMessages.getString( PKG, "TextFileInputDialog.FilterPositionColumn.Column" ), ColumnInfo.COLUMN_TYPE_TEXT, false ), new ColumnInfo( BaseMessages.getString( PKG, "TextFileInputDialog.StopOnFilterColumn.Column" ), ColumnInfo.COLUMN_TYPE_CCOMBO, YES_NO_COMBO ), fdFilter = new FormData(); fdFilter.left = new FormAttachment( 0, 0 ); fdFilter.top = new FormAttachment( 0, 0 ); fdFilter.right = new FormAttachment( 100, 0 ); fdFilter.bottom = new FormAttachment( 100, 0 ); wFilter.setLayoutData( fdFilter ); wFilterComp.layout(); wFilterTab.setControl( wFilterComp );