org.eclipse.xtext.builder
Class JavaProjectBasedBuilderParticipant
java.lang.Object
org.eclipse.xtext.builder.JavaProjectBasedBuilderParticipant
- All Implemented Interfaces:
- IXtextBuilderParticipant
public class JavaProjectBasedBuilderParticipant
- extends java.lang.Object
- implements IXtextBuilderParticipant
- Author:
- Sven Efftinge - Initial contribution and API, Jan Koehnlein
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavaProjectBasedBuilderParticipant
public JavaProjectBasedBuilderParticipant()
build
public void build(IXtextBuilderParticipant.IBuildContext context,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.core.runtime.CoreException
- Description copied from interface:
IXtextBuilderParticipant
- Allows clients to perform additional steps in the build process such as code generation. It is not expected that
any object in the resource set will be modified by a builder participant.
- Specified by:
build
in interface IXtextBuilderParticipant
monitor
- the progress monitor to use for reporting progress to the user. It is the caller's responsibility
to call done() on the given monitor. Accepts null, indicating that no progress should be
reported and that the operation cannot be cancelled.
- Throws:
org.eclipse.core.runtime.CoreException
isValidOutputFolder
protected boolean isValidOutputFolder(org.eclipse.jdt.core.IJavaProject javaProject,
org.eclipse.core.resources.IFolder srcGenFolder)
- Since:
- 2.0
getSrcGenFolder
protected org.eclipse.core.resources.IFolder getSrcGenFolder(org.eclipse.core.resources.IProject builtProject)
- Since:
- 2.0
getConfiguredFileSystemAccess
protected IFileSystemAccess getConfiguredFileSystemAccess(org.eclipse.core.resources.IFolder srcGenFolder,
IAcceptor<java.lang.String> newFileAcceptor)
handleChangedContents
protected void handleChangedContents(IResourceDescription.Delta delta,
IXtextBuilderParticipant.IBuildContext context,
IFileSystemAccess fileSystemAccess)
shouldGenerate
protected boolean shouldGenerate(org.eclipse.emf.ecore.resource.Resource resource,
IXtextBuilderParticipant.IBuildContext context)
handleDeletion
protected void handleDeletion(IResourceDescription.Delta delta,
IXtextBuilderParticipant.IBuildContext context,
IFileSystemAccess fileSystemAccess)