public class ParallelBuilderParticipant extends BuilderParticipant
Modifier and Type | Class and Description |
---|---|
protected static class |
ParallelBuilderParticipant.ParallelBuildContext
Encapsulate all the information for the processing of a single
resource on its own thread.
|
IXtextBuilderParticipant.BuildType, IXtextBuilderParticipant.IBuildContext
Constructor and Description |
---|
ParallelBuilderParticipant() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Runnable |
createRunnable(ParallelBuilderParticipant.ParallelBuildContext buildContext) |
protected void |
doBuild(java.util.List<IResourceDescription.Delta> deltas,
java.util.Map<java.lang.String,OutputConfiguration> outputConfigurations,
java.util.Map<OutputConfiguration,java.lang.Iterable<org.eclipse.core.resources.IMarker>> generatorMarkers,
IXtextBuilderParticipant.IBuildContext context,
EclipseResourceFileSystemAccess2 access,
org.eclipse.core.runtime.IProgressMonitor progressMonitor) |
protected boolean |
doGenerate(IResourceDescription.Delta delta,
IXtextBuilderParticipant.IBuildContext context,
IFileSystemAccess access) |
protected java.lang.Runnable |
getFlushAndCleanDerivedResourcesCallback(ParallelBuilderParticipant.ParallelBuildContext buildContext,
java.util.Set<org.eclipse.core.resources.IFile> derivedResources,
boolean generated) |
protected IFileSystemAccess2 |
getParalleFileSystemAccess(IResourceDescription.Delta delta,
IXtextBuilderParticipant.IBuildContext context,
java.util.Set<org.eclipse.core.resources.IFile> derivedResources,
FileSystemAccessQueue fileSystemAccessQueue,
IFileSystemAccess2 delegate) |
protected void |
handleChangedContents(IResourceDescription.Delta delta,
IXtextBuilderParticipant.IBuildContext context,
IFileSystemAccess access) |
protected void |
handleChangedContents(ParallelBuilderParticipant.ParallelBuildContext context,
IFileSystemAccess2 access) |
protected <E> java.util.concurrent.BlockingQueue<E> |
newBlockingQueue(int capacity) |
addMarkerAndLogError, build, canClean, cleanDerivedResources, cleanOutput, cleanOutput, clearResourceSet, getBuilderPreferenceAccess, getCurrentSourceFolder, getDerivedResourceMarkers, getDerivedResources, getGenerator, getGenerator2, getGeneratorIdProvider, getGeneratorMarkers, getOutputConfigurationProvider, getOutputConfigurations, getOutputs, getPostProcessor, getRelevantDeltas, getResourceServiceProvider, getStorage2UriMapper, handleChangedContents, isEnabled, refreshOutputFolders, registerCurrentSourceFolder, saveResourceStorage, setBuilderPreferenceAccess, setOutputConfigurationProvider, shouldGenerate
protected void handleChangedContents(IResourceDescription.Delta delta, IXtextBuilderParticipant.IBuildContext context, IFileSystemAccess access) throws org.eclipse.core.runtime.CoreException
handleChangedContents
in class BuilderParticipant
org.eclipse.core.runtime.CoreException
handleChangedContents(ParallelBuildContext, IFileSystemAccess2)
protected void handleChangedContents(ParallelBuilderParticipant.ParallelBuildContext context, IFileSystemAccess2 access) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
protected void doBuild(java.util.List<IResourceDescription.Delta> deltas, java.util.Map<java.lang.String,OutputConfiguration> outputConfigurations, java.util.Map<OutputConfiguration,java.lang.Iterable<org.eclipse.core.resources.IMarker>> generatorMarkers, IXtextBuilderParticipant.IBuildContext context, EclipseResourceFileSystemAccess2 access, org.eclipse.core.runtime.IProgressMonitor progressMonitor) throws org.eclipse.core.runtime.CoreException
doBuild
in class BuilderParticipant
org.eclipse.core.runtime.CoreException
protected java.lang.Runnable createRunnable(ParallelBuilderParticipant.ParallelBuildContext buildContext)
protected boolean doGenerate(IResourceDescription.Delta delta, IXtextBuilderParticipant.IBuildContext context, IFileSystemAccess access) throws org.eclipse.core.runtime.OperationCanceledException
doGenerate
in class BuilderParticipant
org.eclipse.core.runtime.OperationCanceledException
protected <E> java.util.concurrent.BlockingQueue<E> newBlockingQueue(int capacity)
protected java.lang.Runnable getFlushAndCleanDerivedResourcesCallback(ParallelBuilderParticipant.ParallelBuildContext buildContext, java.util.Set<org.eclipse.core.resources.IFile> derivedResources, boolean generated)
protected IFileSystemAccess2 getParalleFileSystemAccess(IResourceDescription.Delta delta, IXtextBuilderParticipant.IBuildContext context, java.util.Set<org.eclipse.core.resources.IFile> derivedResources, FileSystemAccessQueue fileSystemAccessQueue, IFileSystemAccess2 delegate)