Examples of JstdServer


Examples of com.google.jstestdriver.idea.server.JstdServer

    myTabs.getComponent().setBorder(IdeBorderFactory.createEmptyBorder(0, 2, 0, 0));

    mySettingsTab = new JstdServerSettingsTab(myProject);
    myTabs.addTab(mySettingsTab.getTabInfo());

    JstdServer server = JstdServerRegistry.getInstance().getServer();
    if (server != null && server.isProcessRunning()) {
      attachToServer(server);
    }

    myRootPanel = new JPanel(new BorderLayout(0, 0));
    myRootPanel.add(myToolbar.getComponent(), BorderLayout.WEST);
View Full Code Here

Examples of com.google.jstestdriver.idea.server.JstdServer

    super("Stop the local server", null, AllIcons.Actions.Suspend);
  }

  @Override
  public void update(AnActionEvent e) {
    JstdServer server = JstdServerRegistry.getInstance().getServer();
    e.getPresentation().setEnabled(server != null && server.isProcessRunning());
  }
View Full Code Here

Examples of com.google.jstestdriver.idea.server.JstdServer

    e.getPresentation().setEnabled(server != null && server.isProcessRunning());
  }

  @Override
  public void actionPerformed(AnActionEvent e) {
    JstdServer server = JstdServerRegistry.getInstance().getServer();
    if (server != null) {
      server.shutdownAsync();
    }
  }
View Full Code Here

Examples of com.google.jstestdriver.idea.server.JstdServer

    mySession = session;
  }

  @Override
  public void update(AnActionEvent e) {
    JstdServer runningServer = JstdServerRegistry.getInstance().getServer();
    Presentation presentation = e.getPresentation();
    if (runningServer != null && runningServer.isProcessRunning()) {
      presentation.setIcon(AllIcons.Actions.Restart);
      presentation.setText("Rerun local server");
    }
    else {
      presentation.setIcon(AllIcons.Actions.Execute);
View Full Code Here

Examples of com.google.jstestdriver.idea.server.JstdServer

    if (runSettings.isExternalServerType()) {
      throw new ExecutionException("Local JsTestDriver server running in IDE required for tests debugging");
    }
    JstdToolWindowManager jstdToolWindowManager = JstdToolWindowManager.getInstance(environment.getProject());
    jstdToolWindowManager.setAvailable(true);
    JstdServer server = JstdServerRegistry.getInstance().getServer();
    final AsyncResult<RunProfileStarter> result = new AsyncResult<RunProfileStarter>();
    if (server != null && !server.isStopped()) {
      prepareWithServer(environment.getProject(), result, server, runSettings);
      return result;
    }
    jstdToolWindowManager.restartServer(new NullableConsumer<JstdServer>() {
      @Override
View Full Code Here

Examples of com.google.jstestdriver.idea.server.JstdServer

    if (jstdState.getRunSettings().isExternalServerType()) {
      return AsyncResult.<RunProfileStarter>done(new MyStarter(null));
    }
    JstdToolWindowManager jstdToolWindowManager = JstdToolWindowManager.getInstance(environment.getProject());
    jstdToolWindowManager.setAvailable(true);
    JstdServer server = JstdServerRegistry.getInstance().getServer();
    if (server != null && !server.isStopped()) {
      return AsyncResult.<RunProfileStarter>done(new MyStarter(server));
    }
    final AsyncResult<RunProfileStarter> result = new AsyncResult<RunProfileStarter>();
    jstdToolWindowManager.restartServer(new NullableConsumer<JstdServer>() {
      @Override
View Full Code Here

Examples of com.google.jstestdriver.idea.server.JstdServer

  @Nullable
  public ExecutionResult execute(@NotNull Executor executor, @NotNull ProgramRunner runner) throws ExecutionException {
    if (myRunSettings.isExternalServerType()) {
      return executeWithServer(null);
    }
    JstdServer ideServer = JstdServerRegistry.getInstance().getServer();
    if (ideServer == null || !ideServer.isProcessRunning()) {
      throw new ExecutionException("JsTestDriver server is not running unexpectedly");
    }
    return executeWithServer(ideServer);
  }
View Full Code Here

Examples of com.google.jstestdriver.idea.server.JstdServer

    if (jstdState.getRunSettings().isExternalServerType()) {
      return AsyncResult.<RunProfileStarter>done(new JstdRunStarter(null, false));
    }
    JstdToolWindowManager jstdToolWindowManager = JstdToolWindowManager.getInstance(environment.getProject());
    jstdToolWindowManager.setAvailable(true);
    JstdServer server = JstdServerRegistry.getInstance().getServer();
    if (server != null && !server.isStopped()) {
      return AsyncResult.<RunProfileStarter>done(new JstdRunStarter(server, false));
    }
    final AsyncResult<RunProfileStarter> result = new AsyncResult<RunProfileStarter>();
    jstdToolWindowManager.restartServer(new NullableConsumer<JstdServer>() {
      @Override
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.