@PreDestroy public void destroy() { clearPipeline(); actionItemPresenterInstance.destroy(startAction); actionItemPresenterInstance.destroy(stopAction); actionItemPresenterInstance.destroy(deleteAction); actionItemSeparatorPresenterInstance.destroy(separator); }
@PreDestroy public void destroy() { clearPipeline(); actionItemPresenterInstance.destroy(startAction); actionItemPresenterInstance.destroy(stopAction); actionItemPresenterInstance.destroy(deleteAction); actionItemSeparatorPresenterInstance.destroy(separator); actionItemSeparatorPresenterInstance.destroy(secondarySeparator); actionItemPresenterInstance.destroy(showErrorAction); }
public void setup(final RuntimeListItem runtimeListItem) { this.item = runtimeListItem; clearPipeline(); if (item.isRuntime()) { setupRuntime(runtimeListItem); } else { setupPipelineTrace(runtimeListItem); } view.addExpandedContent(pipelinePresenter.getView()); }
public void setup(final RuntimeListItem runtimeListItem) { this.item = runtimeListItem; clearPipeline(); if (item.isRuntime()) { setupRuntime(runtimeListItem); } else { setupPipelineTrace(runtimeListItem); } view.addExpandedContent(pipelinePresenter.getView()); }
private void setupPipeline(final PipelineExecutionTrace trace) { clearPipeline(); boolean showStep = true; Pipeline pipeline = trace.getPipeline(); for (int i = 0; showStep && i < pipeline.getStages().size(); i++) { Stage stage = pipeline.getStages().get(i); PipelineStatus stageStatus = trace.getStageStatus(stage.getName()); showStep = showStage(stageStatus); if (showStep) { if (i > 0) { TransitionPresenter transitionPresenter = newTransitionPresenter(); currentTransitions.add(transitionPresenter); pipelinePresenter.addStage(transitionPresenter.getView()); } final StagePresenter stagePresenter = newStagePresenter(); stagePresenter.setup(stage); stagePresenter.setState(buildStageState(stageStatus)); pipelinePresenter.addStage(stagePresenter.getView()); currentStages.add(stage); stagePresenters.put(stage, stagePresenter); } } }
private void setupPipeline(final PipelineExecutionTrace trace) { clearPipeline(); boolean showStep = true; Pipeline pipeline = trace.getPipeline(); for (int i = 0; showStep && i < pipeline.getStages().size(); i++) { Stage stage = pipeline.getStages().get(i); PipelineStatus stageStatus = trace.getStageStatus(stage.getName()); showStep = showStage(stageStatus); if (showStep) { if (i > 0) { TransitionPresenter transitionPresenter = newTransitionPresenter(); currentTransitions.add(transitionPresenter); pipelinePresenter.addStage(transitionPresenter.getView()); } final StagePresenter stagePresenter = newStagePresenter(); stagePresenter.setup(stage); stagePresenter.setState(buildStageState(stageStatus)); pipelinePresenter.addStage(stagePresenter.getView()); currentStages.add(stage); stagePresenters.put(stage, stagePresenter); } } }