public boolean isExecutionResultsPaneVisible() { TransGraph transGraph = getActiveTransGraph(); return ( transGraph != null ) && ( transGraph.isExecutionResultsPaneVisible() ); }
public void showExecutionResults() { if ( isExecutionResultsPaneVisible() ) { disposeExtraView(); } else { addAllTabs(); } }
/** * Finds the last active transformation in the running job to the opened transMeta * * @param transGraph * @param jobEntryCopy */ private void attachActiveTrans( TransGraph transGraph, TransMeta newTrans, JobEntryCopy jobEntryCopy ) { if ( job != null && transGraph != null ) { Trans trans = spoon.findActiveTrans( job, jobEntryCopy ); transGraph.setTrans( trans ); if ( !transGraph.isExecutionResultsPaneVisible() ) { transGraph.showExecutionResults(); } transGraph.setControlStates(); } }
/** * Finds the last active transformation in the running job to the opened transMeta * * @param transGraph * @param stepMeta */ private void attachActiveTrans( TransGraph transGraph, StepMeta stepMeta ) { if ( trans != null && transGraph != null ) { Trans subTransformation = trans.getActiveSubTransformation( stepMeta.getName() ); transGraph.setTrans( subTransformation ); if ( !transGraph.isExecutionResultsPaneVisible() ) { transGraph.showExecutionResults(); } transGraph.setControlStates(); } }
/** * hideExpandedContent( TransGraph graph ) * * @param graph * the TransGraph whose web browser will be hidden */ public static void hideExpandedContent( TransGraph graph ) { doToExpandedContent( graph, browser -> { if ( Const.isOSX() && graph.isExecutionResultsPaneVisible() ) { graph.extraViewComposite.setVisible( true ); } browser.moveBelow( null ); browser.getParent().layout( true, true ); browser.getParent().redraw(); } ); }
if ( !transGraph.isExecutionResultsPaneVisible() ) { transGraph.showExecutionResults();
/** * showExpandedContent( TransGraph graph ) * * @param graph * TransGraph to create the web browser for. If the wev browser hasn't been created this will create one. * Else it will just bring the web browser associated to this TransGraph to the top. */ public static void showExpandedContent( TransGraph graph ) { if ( graph == null ) { return; } Browser browser = getExpandedContentForTransGraph( graph ); if ( browser == null ) { return; } if ( !isVisible( graph ) ) { maximizeExpandedContent( browser ); } if ( Const.isOSX() && graph.isExecutionResultsPaneVisible() ) { graph.extraViewComposite.setVisible( false ); } browser.moveAbove( null ); browser.getParent().layout( true ); browser.getParent().redraw(); }