/** {@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 setDebugPort(Runner runner) { ApplicationProcessDescriptor runnerDescriptor = runner.getDescriptor(); if (runnerDescriptor != null && runnerDescriptor.getDebugPort() != -1) { view.setDebugPort(String.valueOf(runnerDescriptor.getDebugPort())); } }