/** {@inheritDoc} */ @Override public void onProjectClosed(@NotNull ProjectActionEvent projectActionEvent) { partStack.hidePart(this); selectionManager.setRunner(null); templateContainer.setVisible(false); view.setEnableRunButton(false); view.setEnableReRunButton(false); view.setEnableStopButton(false); view.setEnableLogsButton(false); view.setApplicationURl(null); view.setDebugPort(null); view.setTimeout(TIMER_STUB); history.clear(); runnerActions.clear(); runnerCounter.reset(); terminalContainer.reset(); consoleContainer.reset(); propertiesContainer.reset(); getRunningProcessAction.stop(); propertiesContainer.show((Runner) null); }
private void selectHistoryTab() { state = RUNNERS; panelState.setState(RUNNERS); view.setEnableRunButton(runnerUtil.hasRunPermission()); view.showOtherButtons(); }
/** {@inheritDoc} */ @Override public void onProjectReady(@NotNull ProjectActionEvent projectActionEvent) { view.setEnableReRunButton(false); view.setEnableStopButton(false); view.setEnableLogsButton(false); templateContainer.setVisible(true); getRunningProcessAction = actionFactory.createGetRunningProcess(); boolean isRunOperationAvailable = runnerUtil.hasRunPermission(); view.setEnableRunButton(isRunOperationAvailable); if (!isRunOperationAvailable) { return; } templateContainer.showEnvironments(); getRunningProcessAction.perform(); getSystemEnvironmentsAction.perform(); runnerTimer.schedule(ONE_SEC.getValue()); }