Package dtool.dub

Examples of dtool.dub.BundlePath


    // Test delete over a working copy
   
  }

  protected ParsedModule doUpdateWorkingCopy(Path filePath, String contents) {
    BundlePath bundlePath = BundlePath.findBundleForPath(filePath);
    assertTrue(sm.checkIsResolutionStale(bundlePath) == false);
    return sm.setWorkingCopyAndParse(filePath, contents);
  }
View Full Code Here


    assertTrue(sm.checkIsResolutionStale(bundlePath) == false);
    return sm.setWorkingCopyAndParse(filePath, contents);
  }
 
  protected void doDiscardWorkingCopy(Path filePath) {
    BundlePath bundlePath = BundlePath.findBundleForPath(filePath);
    assertTrue(sm.checkIsResolutionStale(bundlePath) == false);
    sm.discardWorkingCopy(filePath);
   
    assertTrue(sm.parseCache.getEntry(filePath).getParsedModuleIfNotStale(true) == null);
  }
View Full Code Here

      // Recheck stale status after acquiring lock, it might have been updated in the meanwhile.
      // Otherwise unnecessary update operatons might occur if two threads tried to update at the same time.
      if(staleInfo.checkIsResolutionStale() == false)
        return staleInfo.getSemanticResolution();
     
      BundlePath bundlePath = staleInfo.bundlePath;
      ResolvedManifest manifest = getUpdatedManifest(bundlePath);
      StandardLibraryResolution stdLibResolution = getUpdatedStdLibResolution(compilerPath);
     
      BundleResolution bundleRes = new BundleResolution(this, manifest, stdLibResolution);
     
View Full Code Here

  public ResolvedModule getUpdatedResolvedModule(Path filePath, Path compilerPath) throws ExecutionException {
    // Keep this enabled for now.
//    if(!filePath.isAbsolute()) {
//      throw new ExecutionException(new Exception("Invalid module path"));
//    }
    BundlePath bundlePath = BundlePath.findBundleForPath(filePath);
   
    try {
      AbstractBundleResolution bundleRes;
      if(bundlePath == null) {
        StandardLibraryResolution stdLibResolution = getUpdatedStdLibResolution(compilerPath);
View Full Code Here

    checkModuleExists(file, moduleName, true);
    doCodeCompletion(file, 0, results);
  }
 
  protected void checkModuleExists(IFile file, String moduleName, boolean exists) {
    BundlePath bundlePath = BundlePath.create(file.getProject().getLocation().toFile().toPath());
    BundleResolution sr;
    try {
      sr = client.getServerSemanticManager().getUpdatedResolution(bundlePath);
    } catch (ExecutionException e) {
      throw melnorme.utilbox.core.ExceptionAdapter.unchecked(e);
View Full Code Here

    IPath projectLocation = project.getLocation();
    if(projectLocation == null) {
      return null; // Project no longer exists, or not stored in the local filesystem.
    }
   
    BundlePath bundlePath = BundlePath.create(projectLocation.toFile().toPath());
   
    String dubPath = DeeCorePreferences.getEffectiveDubPath();
   
    DubCompositeOperation resolveProjectOperation = new DubCompositeOperation(
      MessageFormat.format(DeeCoreMessages.RunningDubDescribe, project.getName()), project);
View Full Code Here

  }
 
  protected IBuildpathEntry[] getBuildpathEntriesFromDeps(DubBundleDescription bundleDesc) {
    ArrayList<IBuildpathEntry> depEntries = new ArrayList<>();
    for (DubBundle depBundle : bundleDesc.getBundleDependencies()) {
      BundlePath bundlePath = depBundle.getBundlePath();
      if(depBundle.hasErrors() || bundlePath == null) {
        continue;
      }
      IProject workspaceProject = findProjectForBundle(depBundle);
      if(workspaceProject != null) {
        depEntries.add(DLTKCore.newProjectEntry(workspaceProject.getFullPath(), true));
      } else {
        for (java.nio.file.Path srcFolder : depBundle.getEffectiveSourceFolders()) {
         
          java.nio.file.Path srcFolderAbsolute = bundlePath.resolve(srcFolder);
          assertTrue(srcFolderAbsolute.isAbsolute());
          depEntries.add(
            DubDependenciesBuildpathContainer.createDubBuildpathEntry(EclipseUtils.path(srcFolderAbsolute)));
        }
      }
View Full Code Here

TOP

Related Classes of dtool.dub.BundlePath

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.