Search in sources :

Example 6 with JstdServerLifeCycleAdapter

use of com.google.jstestdriver.idea.server.JstdServerLifeCycleAdapter in project intellij-plugins by JetBrains.

the class JstdToolWindowSession method attachToServer.

private void attachToServer(@NotNull JstdServer server) {
    ApplicationManager.getApplication().assertIsDispatchThread();
    myToolbar.updateActionsImmediately();
    server.addLifeCycleListener(new JstdServerLifeCycleAdapter() {

        @Override
        public void onServerStopped() {
            myToolbar.updateActionsImmediately();
        }
    }, myProject);
    JstdServerConsoleTab consoleTab = getOrRegisterConsoleContent();
    consoleTab.attachToServer(server);
    myTabs.setSelectedTitle(consoleTab.getTabInfo().getText());
}
Also used : JstdServerLifeCycleAdapter(com.google.jstestdriver.idea.server.JstdServerLifeCycleAdapter)

Aggregations

JstdServerLifeCycleAdapter (com.google.jstestdriver.idea.server.JstdServerLifeCycleAdapter)6 JstdBrowserInfo (com.google.jstestdriver.idea.server.JstdBrowserInfo)3 NopProcessHandler (com.intellij.execution.process.NopProcessHandler)3 ExecutionResult (com.intellij.execution.ExecutionResult)2 RunContentBuilder (com.intellij.execution.runners.RunContentBuilder)2 RunContentDescriptor (com.intellij.execution.ui.RunContentDescriptor)2 JstdRunConfiguration (com.google.jstestdriver.idea.execution.JstdRunConfiguration)1 JstdRunProfileState (com.google.jstestdriver.idea.execution.JstdRunProfileState)1 JstdServerSettings (com.google.jstestdriver.idea.server.JstdServerSettings)1 CoverageEnabledConfiguration (com.intellij.execution.configurations.coverage.CoverageEnabledConfiguration)1 ProcessHandler (com.intellij.execution.process.ProcessHandler)1 TestTreeView (com.intellij.execution.testframework.TestTreeView)1 TestTreeRenderer (com.intellij.execution.testframework.sm.runner.ui.TestTreeRenderer)1 OpenUrlHyperlinkInfo (com.intellij.ide.browsers.OpenUrlHyperlinkInfo)1 Alarm (com.intellij.util.Alarm)1 NotNull (org.jetbrains.annotations.NotNull)1 Nullable (org.jetbrains.annotations.Nullable)1