public class BuildContext extends java.lang.Object implements IXtextBuilderParticipant.IBuildContext
Constructor and Description |
---|
BuildContext(XtextBuilder builder,
org.eclipse.emf.ecore.resource.ResourceSet resourceSet,
java.util.List<IResourceDescription.Delta> deltas,
IXtextBuilderParticipant.BuildType type) |
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.
|
org.eclipse.emf.ecore.resource.ResourceSet |
getResourceSet()
The correctly configured resource set for this run of the incremental project builder.
|
void |
needRebuild()
Request a rebuild after the this build run.
|
public BuildContext(XtextBuilder builder, org.eclipse.emf.ecore.resource.ResourceSet resourceSet, java.util.List<IResourceDescription.Delta> deltas, IXtextBuilderParticipant.BuildType type)
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 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 IXtextBuilderParticipant.BuildType getBuildType()
IXtextBuilderParticipant.IBuildContext
getBuildType
in interface IXtextBuilderParticipant.IBuildContext