public synchronized void pauseResume() { if ( running ) { // Get the pause toolbar item // if ( !pausing ) { pausing = true; trans.pauseRunning(); setControlStates(); } else { pausing = false; trans.resumeRunning(); setControlStates(); } } }
@Override public void run() { try { setControlStates(); } catch ( KettleRepositoryLostException krle ) { if ( log.isBasic() ) { log.logBasic( krle.getLocalizedMessage() ); } } } };
public void safeStop() { if ( running && !halting ) { halting = true; safeStopping = true; trans.safeStop(); log.logMinimal( BaseMessages.getString( PKG, "TransLog.Log.TransformationSafeStopped" ) ); initialized = false; halted = false; setControlStates(); transMeta.setInternalKettleVariables(); // set the original vars back as they may be changed by a mapping } }
/** * 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(); } }
private void checkTransEnded() { if ( trans != null ) { if ( trans.isFinished() && ( running || halted ) ) { log.logMinimal( BaseMessages.getString( PKG, "TransLog.Log.TransformationHasFinished" ) ); running = false; initialized = false; halted = false; halting = false; safeStopping = false; setControlStates(); // OK, also see if we had a debugging session going on. // If so and we didn't hit a breakpoint yet, display the show // preview dialog... // if ( debug && lastTransDebugMeta != null && lastTransDebugMeta.getTotalNumberOfHits() == 0 ) { debug = false; showLastPreviewResults(); } debug = false; checkErrorVisuals(); shell.getDisplay().asyncExec( new Runnable() { @Override public void run() { spoon.fireMenuControlers(); redraw(); } } ); } } }
startRedrawTimer(); setControlStates(); } catch ( KettleException e ) { log.logError( "Error starting step threads", e );
public void stop() { if ( safeStopping ) { modalMessageDialog( getString( "TransLog.Log.SafeStopAlreadyStarted.Title" ), getString( "TransLog.Log.SafeStopAlreadyStarted" ), SWT.ICON_ERROR | SWT.OK ); return; } if ( ( running && !halting ) ) { halting = true; trans.stopAll(); log.logMinimal( BaseMessages.getString( PKG, "TransLog.Log.ProcessingOfTransformationStopped" ) ); running = false; initialized = false; halted = false; halting = false; setControlStates(); transMeta.setInternalKettleVariables(); // set the original vars back as they may be changed by a mapping } }
setControlStates(); checkErrorVisuals();
setControlStates(); // enable / disable the icons in the toolbar too.