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

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


      // 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


  }

  @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

      smtConsoleView.addMessageFilter(new DartConsoleFilter(project, dartFile));

      final String workingDir = StringUtil.isEmptyOrSpaces(runnerParameters.getWorkingDirectory())
                                ? dartFile.getParent().getPath()
                                : runnerParameters.getWorkingDirectory();
      smtConsoleView.addMessageFilter(new DartRelativePathsConsoleFilter(project, workingDir));
    }
    catch (RuntimeConfigurationError ignore) {/**/}

    Disposer.register(project, smtConsoleView);
    return smtConsoleView;
View Full Code Here

TOP

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

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.