Class BuildManager


  • public class BuildManager
    extends java.lang.Object
    Since:
    2.11
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static interface  BuildManager.Buildable
      A handle that can be used to trigger a build.
      protected static class  BuildManager.ProjectBuildData
      The resources that are about to be build.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String CYCLIC_PROJECT_DEPENDENCIES
      Issue key for cyclic dependencies
    • Constructor Summary

      Constructors 
      Constructor Description
      BuildManager()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<org.eclipse.xtext.resource.IResourceDescription.Delta> doInitialBuild​(java.util.List<org.eclipse.xtext.resource.impl.ProjectDescription> projects, org.eclipse.xtext.util.CancelIndicator indicator)
      Run an initial build
      protected java.util.List<org.eclipse.xtext.resource.IResourceDescription.Delta> internalBuild​(org.eclipse.xtext.util.CancelIndicator cancelIndicator)
      Run the build on all projects.
      protected void mergeWithUnreportedDeltas​(java.util.List<org.eclipse.xtext.resource.IResourceDescription.Delta> newDeltas)  
      protected void queue​(java.util.Set<org.eclipse.emf.common.util.URI> files, java.util.Collection<org.eclipse.emf.common.util.URI> toRemove, java.util.Collection<org.eclipse.emf.common.util.URI> toAdd)
      Update the contents of the given set.
      protected void reportDependencyCycle​(ProjectManager manager)  
      void setWorkspaceManager​(WorkspaceManager workspaceManager)  
      protected java.util.List<org.eclipse.xtext.resource.impl.ProjectDescription> sortByDependencies​(java.lang.Iterable<org.eclipse.xtext.resource.impl.ProjectDescription> projectDescriptions)
      Get a sorted list of projects to be build.
      BuildManager.Buildable submit​(java.util.List<org.eclipse.emf.common.util.URI> dirtyFiles, java.util.List<org.eclipse.emf.common.util.URI> deletedFiles)
      Enqueue the given file collections.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • CYCLIC_PROJECT_DEPENDENCIES

        public static final java.lang.String CYCLIC_PROJECT_DEPENDENCIES
        Issue key for cyclic dependencies
    • Constructor Detail

      • BuildManager

        public BuildManager()
    • Method Detail

      • submit

        public BuildManager.Buildable submit​(java.util.List<org.eclipse.emf.common.util.URI> dirtyFiles,
                                             java.util.List<org.eclipse.emf.common.util.URI> deletedFiles)
        Enqueue the given file collections.
        Returns:
        a buildable.
      • queue

        protected void queue​(java.util.Set<org.eclipse.emf.common.util.URI> files,
                             java.util.Collection<org.eclipse.emf.common.util.URI> toRemove,
                             java.util.Collection<org.eclipse.emf.common.util.URI> toAdd)
        Update the contents of the given set.
      • doInitialBuild

        public java.util.List<org.eclipse.xtext.resource.IResourceDescription.Delta> doInitialBuild​(java.util.List<org.eclipse.xtext.resource.impl.ProjectDescription> projects,
                                                                                                    org.eclipse.xtext.util.CancelIndicator indicator)
        Run an initial build
        Returns:
        the delta.
      • internalBuild

        protected java.util.List<org.eclipse.xtext.resource.IResourceDescription.Delta> internalBuild​(org.eclipse.xtext.util.CancelIndicator cancelIndicator)
        Run the build on all projects.
      • mergeWithUnreportedDeltas

        protected void mergeWithUnreportedDeltas​(java.util.List<org.eclipse.xtext.resource.IResourceDescription.Delta> newDeltas)
        Since:
        2.18
      • sortByDependencies

        protected java.util.List<org.eclipse.xtext.resource.impl.ProjectDescription> sortByDependencies​(java.lang.Iterable<org.eclipse.xtext.resource.impl.ProjectDescription> projectDescriptions)
        Get a sorted list of projects to be build.
      • reportDependencyCycle

        protected void reportDependencyCycle​(ProjectManager manager)
      • setWorkspaceManager

        public void setWorkspaceManager​(WorkspaceManager workspaceManager)