protected static class ParallelBuilderParticipant.ParallelBuildContext extends java.lang.Object implements IXtextBuilderParticipant.IBuildContext
Constructor and Description |
---|
ParallelBuilderParticipant.ParallelBuildContext(IResourceDescription.Delta delta,
IXtextBuilderParticipant.IBuildContext buildContextDelegate,
java.util.Map<java.lang.String,OutputConfiguration> outputConfigurations,
java.util.Map<OutputConfiguration,java.lang.Iterable<org.eclipse.core.resources.IMarker>> generatorMarkers,
FileSystemAccessQueue fileSystemAccessQueue,
java.util.Queue<ParallelBuilderParticipant.ParallelBuildContext> afterGenerateQueue,
EclipseResourceFileSystemAccess2 delegate,
org.eclipse.core.runtime.IProgressMonitor progressMonitor) |
Modifier and Type | Method and Description |
---|---|
IXtextBuilderParticipant.BuildType |
getBuildType()
The current build type.
|
org.eclipse.core.resources.IProject |
getBuiltProject()
Returns the current project.
|
java.util.List<IResourceDescription.Delta> |
getDeltas()
Returns the list of resource deltas that was produced by this run of the incremental project builder.
|
IGeneratorContext |
getGeneratorContext() |
org.eclipse.emf.ecore.resource.ResourceSet |
getResourceSet()
The correctly configured resource set for this run of the incremental project builder.
|
org.eclipse.emf.common.util.URI |
getURI() |
boolean |
isSourceLevelURI(org.eclipse.emf.common.util.URI uri)
Returns true if the given uri points to a resource from the workspace rather than from an archive.
|
void |
needRebuild()
Request a rebuild after the this build run.
|
public ParallelBuilderParticipant.ParallelBuildContext(IResourceDescription.Delta delta, IXtextBuilderParticipant.IBuildContext buildContextDelegate, java.util.Map<java.lang.String,OutputConfiguration> outputConfigurations, java.util.Map<OutputConfiguration,java.lang.Iterable<org.eclipse.core.resources.IMarker>> generatorMarkers, FileSystemAccessQueue fileSystemAccessQueue, java.util.Queue<ParallelBuilderParticipant.ParallelBuildContext> afterGenerateQueue, EclipseResourceFileSystemAccess2 delegate, org.eclipse.core.runtime.IProgressMonitor progressMonitor)
public org.eclipse.emf.common.util.URI getURI()
public org.eclipse.core.resources.IProject getBuiltProject()
IXtextBuilderParticipant.IBuildContext
getBuiltProject
in interface IXtextBuilderParticipant.IBuildContext
null
.public java.util.List<IResourceDescription.Delta> getDeltas()
IXtextBuilderParticipant.IBuildContext
resource set
by means of
getResource
.getDeltas
in interface IXtextBuilderParticipant.IBuildContext
null
.public org.eclipse.emf.ecore.resource.ResourceSet getResourceSet()
IXtextBuilderParticipant.IBuildContext
getResourceSet
in interface IXtextBuilderParticipant.IBuildContext
null
.public IXtextBuilderParticipant.BuildType getBuildType()
IXtextBuilderParticipant.IBuildContext
getBuildType
in interface IXtextBuilderParticipant.IBuildContext
public void needRebuild()
IXtextBuilderParticipant.IBuildContext
IXtextBuilderParticipant.IBuildContext.needRebuild()
if this
participant generates file that need to be compiled or processed by another builder.needRebuild
in interface IXtextBuilderParticipant.IBuildContext
public boolean isSourceLevelURI(org.eclipse.emf.common.util.URI uri)
IXtextBuilderParticipant.IBuildContext
isSourceLevelURI
in interface IXtextBuilderParticipant.IBuildContext
public IGeneratorContext getGeneratorContext()