Package dtool.dub

Examples of dtool.dub.DubBundleDescription


  public DubBundleDescription getBundleDesc() {
    return bundleDesc;
  }
 
  public DubDependenciesContainer getDubContainer(IProject project) {
    DubBundleDescription bundleInfo = getBundleDesc();
    return new DubDependenciesContainer(bundleInfo, project);
  }
View Full Code Here


  }
 
  protected synchronized void removeProjectInfo(IProject project) {
    ProjectInfo oldProjectInfo = projectInfos.remove(project.getName());
    assertNotNull(oldProjectInfo);
    DubBundleDescription oldDesc = oldProjectInfo.getBundleDesc();
    log.println("DUB project model removed: " + project.getName());
    fireUpdateEvent(new DubModelUpdateEvent(project, oldDesc));
  }
View Full Code Here

    // TODO: this could be optimized to prevent duplicate tasks queued
    return modelAgent.submit(new UpdateAllProjectsBuildpathTask(this, project));
  }
 
  protected void beginProjectDescribeUpdate(final IProject project) {
    DubBundleDescription unresolvedDescription = readUnresolvedBundleDescription(project);
    ProjectInfo unresolvedProjectInfo = addProjectInfo(project, unresolvedDescription);
   
    modelAgent.submit(new ProjectModelDubDescribeTask(this, project, unresolvedProjectInfo));
  }
View Full Code Here

 
  protected DubBundleDescription readUnresolvedBundleDescription(final IProject project) {
    java.nio.file.Path location = project.getLocation().toFile().toPath();
    DubBundle unresolvedBundle = DubManifestParser.parseDubBundleFromLocation(BundlePath.create(location));
   
    return new DubBundleDescription(unresolvedBundle);
  }
View Full Code Here

   
    @Override
    protected void processProjectDelta(IResourceDelta projectDelta) {
      IProject project = (IProject) projectDelta.getResource();
     
      DubBundleDescription existingProjectModel = model.getBundleInfo(project);
     
      if(projectDelta.getKind() == IResourceDelta.REMOVED || !DeeNature.isAccessible(project, true)) {
        if(existingProjectModel == null) {
          return; // Nothing to remove, might not have been a DUB model project.
        }
View Full Code Here

    int exitValue = processHelper.exitValue;
    if(exitValue != 0) {
      throw LangCore.createCoreException("dub returned non-zero status: " + exitValue, null);
    }
   
    final DubBundleDescription bundleDesc = DubHelper.parseDubDescribe(bundlePath, processHelper);
   
    EclipseUtils.getWorkspace().run(new IWorkspaceRunnable() {
      @Override
      public void run(IProgressMonitor monitor) throws CoreException {
        if(project.exists() == false) {
          return;
        }
       
        if(bundleDesc.hasErrors()) {
          setProjectDubError(project, "Error parsing description:", bundleDesc.getError());
        } else {
          workspaceModelManager.addProjectInfo(project, bundleDesc);
          updateBuildpath(project, bundleDesc);
        }
      }
View Full Code Here

  protected void setProjectDubError(IProject project, String message, Throwable exception) throws CoreException {
   
    DubBundleException dubError = new DubBundleException(message, exception);
   
    DubBundle main = unresolvedDescription.getMainBundle();
    DubBundleDescription bundleDesc = new DubBundleDescription(main, dubError);
    workspaceModelManager.model.addProjectInfo(project, bundleDesc, unresolvedProjectInfo.compilerInstall);
   
    setDubErrorMarker(project, message, exception);
  }
View Full Code Here

TOP

Related Classes of dtool.dub.DubBundleDescription

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.