private void runnerSelected() { selectedRunner = selectionManager.getRunner(); if (selectedRunner == null) { showNoRunnerMessage(true); propertiesContainer.reset(); return; } showNoRunnerMessage(false); if (SPLITTER_OFF.equals(panelState.getSplitterState())) { rightPropertiesContainer.showTab(selectedRunner.getActiveTab()); } history.selectRunner(selectedRunner); if (locale.runnerTabTerminal().equals(selectedRunner.getActiveTab()) || SPLITTER_ON.equals(panelState.getSplitterState())) { terminalContainer.update(selectedRunner); } update(selectedRunner); updateRunnerTimer(); }
private void initializeRightPropertiesPanel(@NotNull Provider<TabBuilder> tabBuilderProvider) { rightPropertiesContainer.addTab(consoleTab); TabSelectHandler terminalHandler = new TabSelectHandler() { @Override public void onTabSelected() { if (selectedRunner != null) { selectedRunner.setActiveTab(locale.runnerTabTerminal()); terminalContainer.update(selectedRunner); } } }; terminalTab = tabBuilderProvider .get() .presenter(terminalContainer) .title(locale.runnerTabTerminal()) .visible(VISIBLE) .selectHandler(terminalHandler) .scope(EnumSet.of(RUNNERS)) .tabType(RIGHT) .build(); rightPropertiesContainer.addTab(terminalTab); rightPropertiesContainer.addTab(propertiesTab); rightPropertiesContainer.showTabTitle(consoleTab.getTitle(), false); rightPropertiesContainer.showTabTitle(propertiesTab.getTitle(), false); }