Package com.jetbrains.lang.dart.ide.runner

Examples of com.jetbrains.lang.dart.ide.runner.DartConsoleFilter


    if (builder instanceof TextConsoleBuilderImpl) {
      ((TextConsoleBuilderImpl)builder).setUsePredefinedMessageFilter(false);
    }

    try {
      builder.addFilter(new DartConsoleFilter(env.getProject(), myRunnerParameters.getDartFile()));

      // unit tests can be run as normal Dart apps, so add DartUnitConsoleFilter as well
      final String workingDir = StringUtil.isEmptyOrSpaces(myRunnerParameters.getWorkingDirectory())
                                ? myRunnerParameters.getDartFile().getParent().getPath()
                                : myRunnerParameters.getWorkingDirectory();
      builder.addFilter(new DartRelativePathsConsoleFilter(env.getProject(), workingDir));
    }
    catch (RuntimeConfigurationError e) {
      builder.addFilter(new DartConsoleFilter(env.getProject(), null)); // can't happen because already checked
    }
  }
View Full Code Here


    return new DefaultActionGroup(ActionManager.getInstance().getAction("Dart.stop.pub.server"));
  }

  @Override
  protected void configureConsole(@NotNull final TextConsoleBuilder consoleBuilder) {
    consoleBuilder.addFilter(new DartConsoleFilter(project, firstServedDir));
    consoleBuilder.addFilter(new DartRelativePathsConsoleFilter(project, firstServedDir.getParent().getPath()));
  }
View Full Code Here

  @NotNull
  private static ConsoleView createConsole(@NotNull final Project project, @NotNull final VirtualFile pubspecYamlFile) {
    final TextConsoleBuilder consoleBuilder = TextConsoleBuilderFactory.getInstance().createBuilder(project);
    consoleBuilder.setViewer(true);
    consoleBuilder.addFilter(new DartConsoleFilter(project, pubspecYamlFile));
    consoleBuilder.addFilter(new DartRelativePathsConsoleFilter(project, pubspecYamlFile.getParent().getPath()));
    return consoleBuilder.getConsole();
  }
View Full Code Here

    final SMTRunnerConsoleView smtConsoleView = SMTestRunnerConnectionUtil
      .createConsoleWithCustomLocator(DART_FRAMEWORK_NAME, testConsoleProperties, env, new DartTestLocationProvider(), true, null);

    try {
      final VirtualFile dartFile = runnerParameters.getDartFile();
      smtConsoleView.addMessageFilter(new DartConsoleFilter(project, dartFile));

      final String workingDir = StringUtil.isEmptyOrSpaces(runnerParameters.getWorkingDirectory())
                                ? dartFile.getParent().getPath()
                                : runnerParameters.getWorkingDirectory();
      smtConsoleView.addMessageFilter(new DartRelativePathsConsoleFilter(project, workingDir));
View Full Code Here

TOP

Related Classes of com.jetbrains.lang.dart.ide.runner.DartConsoleFilter

Copyright © 2018 www.massapicom. 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.