add toolbar items status refresh after pipeline execution
@@ -3677,17 +3677,18 @@ public class HopGuiPipelineGraph extends HopGuiAbstractGraph
//
final Thread parentThread = Thread.currentThread();
- getDisplay().asyncExec( new Runnable() {
- @Override
- public void run() {
+ getDisplay().asyncExec( () -> {
addAllTabs();
preparePipeline( parentThread );
- }
} );
log.logMinimal( BaseMessages.getString( PKG, "PipelineLog.Log.StartedExecutionOfPipeline" ) );
updateGui();
+
+ // Update the GUI at the end of the pipeline
+ //
+ pipeline.addExecutionFinishedListener( p -> updateGui() );
}
} else {
modalMessageDialog( BaseMessages.getString( PKG, "PipelineLog.Dialog.DoNoStartPipelineTwice.Title" ),
@@ -3891,10 +3892,9 @@ public class HopGuiPipelineGraph extends HopGuiAbstractGraph
halted = false;
halting = false;
- updateGui();
-
pipelineMeta.setInternalHopVariables(); // set the original vars back as they may be changed by a mapping
}
+ updateGui();
}
public synchronized void pauseResume() {
@@ -3912,9 +3912,7 @@ public class HopGuiPipelineGraph extends HopGuiAbstractGraph
}
private synchronized void preparePipeline( final Thread parentThread ) {
- Runnable runnable = new Runnable() {
- @Override
- public void run() {
+ Runnable runnable = () -> {
try {
pipeline.prepareExecution();
@@ -3934,7 +3932,6 @@ public class HopGuiPipelineGraph extends HopGuiAbstractGraph
initialized = false;
checkErrorVisuals();
}
- }
};
Thread thread = new Thread( runnable );
thread.start();
