Refine search
/** * Add a grid with the execution metrics per step in a table view * */ public void addJobGrid() { // First, see if we need to add the extra view... // if ( jobGraph.extraViewComposite == null || jobGraph.extraViewComposite.isDisposed() ) { jobGraph.addExtraView(); } else { if ( jobGridTab != null && !jobGridTab.isDisposed() ) { // just set this one active and get out... // jobGraph.extraViewTabFolder.setSelection( jobGridTab ); return; } } jobGridTab = new CTabItem( jobGraph.extraViewTabFolder, SWT.NONE ); jobGridTab.setImage( GUIResource.getInstance().getImageShowGrid() ); jobGridTab.setText( BaseMessages.getString( PKG, "Spoon.TransGraph.GridTab.Name" ) ); addControls(); jobGridTab.setControl( wTree ); jobGraph.extraViewTabFolder.setSelection( jobGridTab ); }
public void addAllTabs() { CTabItem tabItemSelection = null; if ( extraViewTabFolder != null && !extraViewTabFolder.isDisposed() ) { tabItemSelection = extraViewTabFolder.getSelection(); } jobHistoryDelegate.addJobHistory(); jobLogDelegate.addJobLog(); jobGridDelegate.addJobGrid(); jobMetricsDelegate.addJobMetrics(); if ( tabItemSelection != null ) { extraViewTabFolder.setSelection( tabItemSelection ); } else { extraViewTabFolder.setSelection( jobGridDelegate.getJobGridTab() ); } XulToolbarbutton button = (XulToolbarbutton) toolbar.getElementById( "job-show-results" ); button.setTooltiptext( BaseMessages.getString( PKG, "Spoon.Tooltip.HideExecutionResults" ) ); ToolItem swtToolItem = (ToolItem) button.getManagedObject(); swtToolItem.setImage( GUIResource.getInstance().getImageHideResults() ); }
transGraph.extraViewTabFolder.setSelection( transPerfTab ); return; transPerfTab.setText( BaseMessages.getString( PKG, "Spoon.TransGraph.PerfTab.Name" ) ); transGraph.extraViewTabFolder.setSelection( transPerfTab );
shell.setText( BaseMessages.getString( PKG, "ElasticSearchBulkDialog.DialogTitle" ) ); wlStepname.setText( BaseMessages.getString( PKG, "System.Label.StepName" ) ); props.setLook( wlStepname ); fdlStepname = new FormData(); wOK.setText( BaseMessages.getString( PKG, "System.Button.OK" ) ); wCancel = new Button( shell, SWT.PUSH ); wCancel.setText( BaseMessages.getString( PKG, "System.Button.Cancel" ) ); wTabFolder.setSelection( 0 );
if ( !bPreviousFieldsLoaded ) { MessageDialog.openError( shell, BaseMessages.getString( PKG, "SelectValuesDialog.ColumnInfo.Loading" ), BaseMessages.getString( PKG, "SelectValuesDialog.ColumnInfo.Loading" ) ); return; for ( int a = 0; a < columns.length; a++ ) { if ( columns[a].length() > 0 ) { MessageDialog.openError( shell, BaseMessages.getString( PKG, "SelectValuesDialog.DoMapping.NoDeletOrMetaTitle" ), BaseMessages.getString( PKG, "SelectValuesDialog.DoMapping.NoDeletOrMeta" ) ); wTabFolder.setSelection( 0 );
private void addRowGroupTab() { wTab.setText( BaseMessages.getString( PKG, "JobExecutorDialog.RowGroup.Title" ) ); wTab.setToolTipText( BaseMessages.getString( PKG, "JobExecutorDialog.RowGroup.Tooltip" ) ); wlGroupSize.setText( BaseMessages.getString( PKG, "JobExecutorDialog.GroupSize.Label" ) ); FormData fdlGroupSize = new FormData(); fdlGroupSize.top = new FormAttachment( 0, 0 ); wTabFolder.setSelection( wTab );
private void addRowGroupTab() { wTab.setText( BaseMessages.getString( PKG, "TransExecutorDialog.RowGroup.Title" ) ); wTab.setToolTipText( BaseMessages.getString( PKG, "TransExecutorDialog.RowGroup.Tooltip" ) ); wlGroupSize.setText( BaseMessages.getString( PKG, "TransExecutorDialog.GroupSize.Label" ) ); FormData fdlGroupSize = new FormData(); fdlGroupSize.top = new FormAttachment( 0, 0 ); wTabFolder.setSelection( wTab );
public void addAllTabs() { CTabItem tabItemSelection = null; if ( extraViewTabFolder != null && !extraViewTabFolder.isDisposed() ) { tabItemSelection = extraViewTabFolder.getSelection(); } transHistoryDelegate.addTransHistory(); transLogDelegate.addTransLog(); transGridDelegate.addTransGrid(); transPerfDelegate.addTransPerf(); transMetricsDelegate.addTransMetrics(); transPreviewDelegate.addTransPreview(); List<SpoonUiExtenderPluginInterface> relevantExtenders = SpoonUiExtenderPluginType.getInstance().getRelevantExtenders( TransGraph.class, LOAD_TAB ); for ( SpoonUiExtenderPluginInterface relevantExtender : relevantExtenders ) { relevantExtender.uiEvent( this, LOAD_TAB ); } if ( tabItemSelection != null ) { extraViewTabFolder.setSelection( tabItemSelection ); } else { extraViewTabFolder.setSelection( transGridDelegate.getTransGridTab() ); } XulToolbarbutton button = (XulToolbarbutton) toolbar.getElementById( "trans-show-results" ); button.setTooltiptext( BaseMessages.getString( PKG, "Spoon.Tooltip.HideExecutionResults" ) ); ToolItem toolItem = (ToolItem) button.getManagedObject(); toolItem.setImage( GUIResource.getInstance().getImageHideResults() ); }
shell.setText( BaseMessages.getString( PKG, "TextFileInputDialog.DialogTitle" ) ); wlStepname.setText( BaseMessages.getString( PKG, "System.Label.StepName" ) ); props.setLook( wlStepname ); fdlStepname = new FormData(); wOK.setText( BaseMessages.getString( PKG, "System.Button.OK" ) ); wTabFolder.setSelection( 0 );
shell.setText( BaseMessages.getString( PKG, "JobDialog.JobProperties.ShellText" ) ); wOK.setText( BaseMessages.getString( PKG, "System.Button.OK" ) ); wOK.setText( BaseMessages.getString( PKG, "System.Button.OK" ) ); wSQL = new Button( shell, SWT.PUSH ); wSQL.setText( BaseMessages.getString( PKG, "System.Button.SQL" ) ); wTabFolder.setSelection( 0 ); getData(); BaseStepDialog.setSize( shell );
tbtmParameters.setText( BaseMessages.getString( PKG, prefix + ".Params.Label" ) ); Composite parametersComposite = new Composite( tabFolder, SWT.NONE ); props.setLook( parametersComposite ); new ColumnInfo( BaseMessages.getString( PKG, prefix + ".ParamsColumn.Argument" ), ColumnInfo.COLUMN_TYPE_TEXT, false, true, 126 ), // Stepname new ColumnInfo( BaseMessages.getString( PKG, prefix + ".ParamsColumn.Default" ), ColumnInfo.COLUMN_TYPE_TEXT, false, true, 138 ), // Preview size new ColumnInfo( BaseMessages.getString( PKG, prefix + ".ParamsColumn.Value" ), wParams.setLayoutData( fdParams ); tabFolder.setSelection( 0 );
private void addResultFilesTab() { final CTabItem wTab = new CTabItem( wTabFolder, SWT.NONE ); wTab.setText( BaseMessages.getString( PKG, "JobExecutorDialog.ResultFiles.Title" ) ); wTab.setToolTipText( BaseMessages.getString( PKG, "JobExecutorDialog.ResultFiles.Tooltip" ) ); wlResultFilesTarget.setText( BaseMessages.getString( PKG, "JobExecutorDialog.ResultFilesTarget.Label" ) ); FormData fdlResultFilesTarget = new FormData(); fdlResultFilesTarget.top = new FormAttachment( 0, 0 ); wTabFolder.setSelection( wTab );
shell.setText( BaseMessages.getString( PKG, "SimpleMappingDialog.Shell.Title" ) ); wlStepname.setText( BaseMessages.getString( PKG, "SimpleMappingDialog.Stepname.Label" ) ); props.setLook( wlStepname ); fdlStepname = new FormData(); wlPath.setText( BaseMessages.getString( PKG, "SimpleMappingDialog.Transformation.Label" ) ); FormData fdlTransformation = new FormData(); fdlTransformation.left = new FormAttachment( 0, 0 ); wTabFolder.setSelection( 0 );
shell.setText( BaseMessages.getString( PKG, "MappingDialog.Shell.Title" ) ); wlStepname.setText( BaseMessages.getString( PKG, "MappingDialog.Stepname.Label" ) ); props.setLook( wlStepname ); fdlStepname = new FormData(); wlPath.setText( BaseMessages.getString( PKG, "MappingDialog.Transformation.Label" ) ); FormData fdlTransformation = new FormData(); fdlTransformation.left = new FormAttachment( 0, 0 ); wTabFolder.setSelection( 0 );
private void addResultFilesTab() { wTab.setText( BaseMessages.getString( PKG, "TransExecutorDialog.ResultFiles.Title" ) ); wTab.setToolTipText( BaseMessages.getString( PKG, "TransExecutorDialog.ResultFiles.Tooltip" ) ); wlResultFilesTarget.setText( BaseMessages.getString( PKG, "TransExecutorDialog.ResultFilesTarget.Label" ) ); FormData fdlResultFilesTarget = new FormData(); fdlResultFilesTarget.top = new FormAttachment( 0, 0 ); wTabFolder.setSelection( wTab );
jobGraph.extraViewTabFolder.setSelection( jobHistoryTab ); return; jobHistoryTab.setText( BaseMessages.getString( PKG, "Spoon.TransGraph.HistoryTab.Name" ) ); tabFolder.setSelection( 0 ); jobGraph.extraViewTabFolder.setSelection( jobHistoryTab );
private void addResultRowsTab() { wTab.setText( BaseMessages.getString( PKG, "TransExecutorDialog.ResultRows.Title" ) ); wTab.setToolTipText( BaseMessages.getString( PKG, "TransExecutorDialog.ResultRows.Tooltip" ) ); wlResultRowsTarget.setText( BaseMessages.getString( PKG, "TransExecutorDialog.OutputRowsSource.Label" ) ); FormData fdlResultRowsTarget = new FormData(); fdlResultRowsTarget.top = new FormAttachment( 0, 0 ); wTabFolder.setSelection( wTab );
transGraph.extraViewTabFolder.setSelection( transHistoryTab ); return; transHistoryTab.setText( BaseMessages.getString( PKG, "Spoon.TransGraph.HistoryTab.Name" ) ); tabFolder.setSelection( 0 ); transGraph.extraViewTabFolder.setSelection( transHistoryTab );
transGraph.extraViewTabFolder.setSelection( transMetricsTab ); return; transMetricsTab.setText( BaseMessages.getString( PKG, "Spoon.TransGraph.MetricsTab.Name" ) ); transGraph.extraViewTabFolder.setSelection( transMetricsTab );
jobGraph.extraViewTabFolder.setSelection( jobMetricsTab ); return; jobMetricsTab.setText( BaseMessages.getString( PKG, "Spoon.JobGraph.MetricsTab.Name" ) ); jobGraph.extraViewTabFolder.setSelection( jobMetricsTab );