/** * Check the steps in a transformation * * @param only_selected * True: Check only the selected steps... */ public void checkTrans( TransMeta transMeta, boolean only_selected ) { if ( transMeta == null ) { return; } TransGraph transGraph = delegates.trans.findTransGraphOfTransformation( transMeta ); if ( transGraph == null ) { return; } CheckTransProgressDialog ctpd = new CheckTransProgressDialog( shell, transMeta, transGraph.getRemarks(), only_selected ); ctpd.open(); // manages the remarks arraylist... showLastTransCheck(); }
public void analyseImpact( TransMeta transMeta ) { if ( transMeta == null ) { return; } TransGraph transGraph = delegates.trans.findTransGraphOfTransformation( transMeta ); if ( transGraph == null ) { return; } AnalyseImpactProgressDialog aipd = new AnalyseImpactProgressDialog( shell, transMeta, transGraph.getImpact() ); transGraph.setImpactFinished( aipd.open() ); if ( transGraph.isImpactFinished() ) { showLastImpactAnalyses( transMeta ); } }
public void copyTransformationImage( TransMeta transMeta ) { TransGraph transGraph = delegates.trans.findTransGraphOfTransformation( transMeta ); if ( transGraph == null ) { return; } Clipboard clipboard = GUIResource.getInstance().getNewClipboard(); Point area = transMeta.getMaximum(); Image image = transGraph.getTransformationImage( Display.getCurrent(), area.x, area.y, 1.0f ); clipboard.setContents( new Object[] { image.getImageData() }, new Transfer[] { ImageTransfer.getInstance() } ); }
/** * Show the remarks of the last transformation check that was run. * * @see #checkTrans() */ public void showLastTransCheck() { TransMeta transMeta = getActiveTransformation(); if ( transMeta == null ) { return; } TransGraph transGraph = delegates.trans.findTransGraphOfTransformation( transMeta ); if ( transGraph == null ) { return; } CheckResultDialog crd = new CheckResultDialog( transMeta, shell, SWT.NONE, transGraph.getRemarks() ); String stepName = crd.open(); if ( stepName != null ) { // Go to the indicated step! StepMeta stepMeta = transMeta.findStep( stepName ); if ( stepMeta != null ) { delegates.steps.editStep( transMeta, stepMeta ); } } }
return; TransGraph transGraph = delegates.trans.findTransGraphOfTransformation( transMeta ); if ( transGraph == null ) { return;
TransGraph transGraph = delegates.trans.findTransGraphOfTransformation( (TransMeta) undoInterface ); transGraph.forceFocus();
TransGraph transGraph = delegates.trans.findTransGraphOfTransformation( (TransMeta) undoInterface ); transGraph.forceFocus();