Examples of processLivePackages()


Examples of com.jetbrains.lang.dart.util.DartUrlResolver.processLivePackages()

    if (pubspecYamlFile != null && !pubspecYamlFile.isDirectory()) {
      final ArrayList<AbstractTreeNode> modifiedChildren = new ArrayList<AbstractTreeNode>(children);

      final DartUrlResolver resolver = DartUrlResolver.getInstance(project, pubspecYamlFile);
      resolver.processLivePackages(new PairConsumer<String, VirtualFile>() {
        public void consume(final @NotNull String packageName, final @NotNull VirtualFile packageDir) {
          final VirtualFile folder = packagesDir.findChild(packageName);
          if (folder != null) {
            final AbstractTreeNode node = getFolderNode(children, folder);
            if (node == null) {
View Full Code Here

Examples of com.jetbrains.lang.dart.util.DartUrlResolver.processLivePackages()

    appendPackagesFolders(newExcludedPackagesUrls, root.findChild("web"), fileIndex);

    // Folders like packages/PathPackage and packages/ThisProject (where ThisProject is the name specified in pubspec.yaml) are symlinks to local 'lib' folders. Exclude it in order not to have duplicates. Resolve goes to local 'lib' folder.
    // Empty nodes like 'ThisProject (ThisProject/lib)' are added to Project Structure by DartTreeStructureProvider
    final DartUrlResolver resolver = DartUrlResolver.getInstance(module.getProject(), pubspecYamlFile);
    resolver.processLivePackages(new PairConsumer<String, VirtualFile>() {
      public void consume(final String packageName, final VirtualFile packageDir) {
        newExcludedPackagesUrls.add(root.getUrl() + "/packages/" + packageName);
      }
    });
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.