org.eclipse.xtext.builder.impl
Class XtextBuilder

java.lang.Object
  extended by org.eclipse.core.internal.events.InternalBuilder
      extended by org.eclipse.core.resources.IncrementalProjectBuilder
          extended by org.eclipse.xtext.builder.impl.XtextBuilder
All Implemented Interfaces:
org.eclipse.core.runtime.IExecutableExtension

public class XtextBuilder
extends org.eclipse.core.resources.IncrementalProjectBuilder

Author:
Sven Efftinge - Initial contribution and API, Jan Koehnlein, Knut Wannheden, Sebastian Zarnekow - BuildData as blackboard for scheduled data

Field Summary
static java.lang.String BUILDER_ID
           
 
Fields inherited from class org.eclipse.core.resources.IncrementalProjectBuilder
AUTO_BUILD, CLEAN_BUILD, FULL_BUILD, INCREMENTAL_BUILD
 
Constructor Summary
XtextBuilder()
           
 
Method Summary
protected  org.eclipse.core.resources.IProject[] build(int kind, java.util.Map args, org.eclipse.core.runtime.IProgressMonitor monitor)
           
protected  void clean(org.eclipse.core.runtime.IProgressMonitor monitor)
           
protected  void doBuild(ToBeBuilt toBeBuilt, org.eclipse.core.runtime.IProgressMonitor monitor, IXtextBuilderParticipant.BuildType type)
           
protected  void doClean(ToBeBuilt toBeBuilt, org.eclipse.core.runtime.IProgressMonitor monitor)
           
protected  void fullBuild(org.eclipse.core.runtime.IProgressMonitor monitor, boolean isRecoveryBuild)
           
 IResourceSetProvider getResourceSetProvider()
           
protected  void incrementalBuild(org.eclipse.core.resources.IResourceDelta delta, org.eclipse.core.runtime.IProgressMonitor monitor)
           
protected  boolean isOpened(org.eclipse.core.resources.IResourceDelta delta)
           
 
Methods inherited from class org.eclipse.core.resources.IncrementalProjectBuilder
forgetLastBuiltState, getCommand, getDelta, getProject, getRule, hasBeenBuilt, isInterrupted, needRebuild, setInitializationData, startupOnInitialize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BUILDER_ID

public static final java.lang.String BUILDER_ID
See Also:
Constant Field Values
Constructor Detail

XtextBuilder

public XtextBuilder()
Method Detail

getResourceSetProvider

public IResourceSetProvider getResourceSetProvider()

build

protected org.eclipse.core.resources.IProject[] build(int kind,
                                                      java.util.Map args,
                                                      org.eclipse.core.runtime.IProgressMonitor monitor)
                                               throws org.eclipse.core.runtime.CoreException
Specified by:
build in class org.eclipse.core.resources.IncrementalProjectBuilder
Throws:
org.eclipse.core.runtime.CoreException

incrementalBuild

protected void incrementalBuild(org.eclipse.core.resources.IResourceDelta delta,
                                org.eclipse.core.runtime.IProgressMonitor monitor)
                         throws org.eclipse.core.runtime.CoreException
Parameters:
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

doBuild

protected void doBuild(ToBeBuilt toBeBuilt,
                       org.eclipse.core.runtime.IProgressMonitor monitor,
                       IXtextBuilderParticipant.BuildType type)
                throws org.eclipse.core.runtime.CoreException
Parameters:
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

fullBuild

protected void fullBuild(org.eclipse.core.runtime.IProgressMonitor monitor,
                         boolean isRecoveryBuild)
                  throws org.eclipse.core.runtime.CoreException
Parameters:
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

isOpened

protected boolean isOpened(org.eclipse.core.resources.IResourceDelta delta)

clean

protected void clean(org.eclipse.core.runtime.IProgressMonitor monitor)
              throws org.eclipse.core.runtime.CoreException
Overrides:
clean in class org.eclipse.core.resources.IncrementalProjectBuilder
Parameters:
monitor - the progress monitor to use for reporting progress to the user. It is the implementors 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

doClean

protected void doClean(ToBeBuilt toBeBuilt,
                       org.eclipse.core.runtime.IProgressMonitor monitor)
                throws org.eclipse.core.runtime.CoreException
Parameters:
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