org.eclipse.xtext.xtend2.ui.builder
Class Xtend2BuilderParticipant

java.lang.Object
  extended by org.eclipse.xtext.xtend2.ui.builder.Xtend2BuilderParticipant
All Implemented Interfaces:
IXtextBuilderParticipant

public class Xtend2BuilderParticipant
extends java.lang.Object
implements IXtextBuilderParticipant

Author:
Jan Koehnlein - Initial contribution and API

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.xtext.builder.IXtextBuilderParticipant
IXtextBuilderParticipant.BuildType, IXtextBuilderParticipant.IBuildContext
 
Constructor Summary
Xtend2BuilderParticipant()
           
 
Method Summary
 void build(IXtextBuilderParticipant.IBuildContext context, org.eclipse.core.runtime.IProgressMonitor monitor)
          Allows clients to perform additional steps in the build process such as code generation.
protected  void compile(org.eclipse.emf.ecore.resource.Resource sourceResource, org.eclipse.core.resources.IFile targetFile, org.eclipse.core.runtime.SubMonitor progress)
           
protected  boolean hasErrors(org.eclipse.core.resources.IFile sourceFile)
           
protected  void processDelta(IResourceDescription.Delta delta, IXtextBuilderParticipant.IBuildContext context, org.eclipse.core.runtime.SubMonitor progress)
           
protected  void wipeTargetFolder(org.eclipse.core.resources.IFolder targetFolder, IXtextBuilderParticipant.IBuildContext context, org.eclipse.core.runtime.SubMonitor progress)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Xtend2BuilderParticipant

public Xtend2BuilderParticipant()
Method Detail

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

processDelta

protected void processDelta(IResourceDescription.Delta delta,
                            IXtextBuilderParticipant.IBuildContext context,
                            org.eclipse.core.runtime.SubMonitor progress)

hasErrors

protected boolean hasErrors(org.eclipse.core.resources.IFile sourceFile)
                     throws org.eclipse.core.runtime.CoreException
Throws:
org.eclipse.core.runtime.CoreException

wipeTargetFolder

protected void wipeTargetFolder(org.eclipse.core.resources.IFolder targetFolder,
                                IXtextBuilderParticipant.IBuildContext context,
                                org.eclipse.core.runtime.SubMonitor progress)
                         throws org.eclipse.core.runtime.CoreException
Throws:
org.eclipse.core.runtime.CoreException

compile

protected void compile(org.eclipse.emf.ecore.resource.Resource sourceResource,
                       org.eclipse.core.resources.IFile targetFile,
                       org.eclipse.core.runtime.SubMonitor progress)
                throws org.eclipse.core.runtime.CoreException,
                       java.io.UnsupportedEncodingException
Throws:
org.eclipse.core.runtime.CoreException
java.io.UnsupportedEncodingException