org.eclipse.mtl.ide.ui.builders
Class MTLBuilder

java.lang.Object
  extended by org.eclipse.core.internal.events.InternalBuilder
      extended by org.eclipse.core.resources.IncrementalProjectBuilder
          extended by org.eclipse.mtl.ide.ui.builders.MTLBuilder
All Implemented Interfaces:
org.eclipse.core.runtime.IExecutableExtension

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

The builder compiles the MTL templates in a background task. Compilation errors are put in the problems view when it is necessary.


Field Summary
static java.lang.String BUILDER_ID
          The builder ID.
 
Fields inherited from class org.eclipse.core.resources.IncrementalProjectBuilder
AUTO_BUILD, CLEAN_BUILD, FULL_BUILD, INCREMENTAL_BUILD
 
Constructor Summary
MTLBuilder()
          Constructor.
 
Method Summary
protected  org.eclipse.core.resources.IProject[] build(int kind, java.util.Map arguments, org.eclipse.core.runtime.IProgressMonitor monitor)
          
protected  void clean(org.eclipse.core.runtime.IProgressMonitor monitor)
          
protected  void fullBuild(org.eclipse.core.runtime.IProgressMonitor monitor)
          It does a full build.
protected  void incrementalBuild(org.eclipse.core.resources.IResourceDelta delta, org.eclipse.core.runtime.IProgressMonitor monitor)
          It does an incremental build.
 
Methods inherited from class org.eclipse.core.resources.IncrementalProjectBuilder
forgetLastBuiltState, getCommand, getDelta, getProject, 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
The builder ID.

See Also:
Constant Field Values
Constructor Detail

MTLBuilder

public MTLBuilder()
Constructor.

Method Detail

build

protected org.eclipse.core.resources.IProject[] build(int kind,
                                                      java.util.Map arguments,
                                                      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
See Also:
IncrementalProjectBuilder.build(int, java.util.Map, org.eclipse.core.runtime.IProgressMonitor)

fullBuild

protected void fullBuild(org.eclipse.core.runtime.IProgressMonitor monitor)
                  throws org.eclipse.core.runtime.CoreException
It does a full build.

Parameters:
monitor - is the progress monitor
Throws:
org.eclipse.core.runtime.CoreException - contains a status object describing the cause of the exception

incrementalBuild

protected void incrementalBuild(org.eclipse.core.resources.IResourceDelta delta,
                                org.eclipse.core.runtime.IProgressMonitor monitor)
                         throws org.eclipse.core.runtime.CoreException
It does an incremental build.

Parameters:
delta - is the resource delta
monitor - is the progress monitor
Throws:
org.eclipse.core.runtime.CoreException - contains a status object describing the cause of the exception

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
Throws:
org.eclipse.core.runtime.CoreException
See Also:
IncrementalProjectBuilder.clean(org.eclipse.core.runtime.IProgressMonitor)

Copyright 2008 Obeo
All Rights Reserved.