Package org.eclipse.xtext.ide.server
Class BuildManager
- java.lang.Object
-
- org.eclipse.xtext.ide.server.BuildManager
-
public class BuildManager extends java.lang.Object- Since:
- 2.11
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceBuildManager.BuildableA handle that can be used to trigger a build.protected static classBuildManager.ProjectBuildDataThe resources that are about to be build.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCYCLIC_PROJECT_DEPENDENCIESIssue 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 buildprotected java.util.List<org.eclipse.xtext.resource.IResourceDescription.Delta>internalBuild(org.eclipse.xtext.util.CancelIndicator cancelIndicator)Run the build on all projects.protected voidmergeWithUnreportedDeltas(java.util.List<org.eclipse.xtext.resource.IResourceDescription.Delta> newDeltas)protected voidqueue(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 voidreportDependencyCycle(ProjectManager manager)voidsetWorkspaceManager(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.Buildablesubmit(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.
-
-
-
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)
-
-