Class TranslationBuilder

java.lang.Object
org.eclipse.core.internal.events.InternalBuilder
org.eclipse.core.resources.IncrementalProjectBuilder
com.e1c.langtool.builder.TranslationBuilder
All Implemented Interfaces:
org.eclipse.core.runtime.IExecutableExtension
Direct Known Subclasses:
DependentTranslationBuilder

public class TranslationBuilder extends org.eclipse.core.resources.IncrementalProjectBuilder
Builder to collect the set of changed resources and pass it to the IBuiltResourceQueue for processing them.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The id of this translation builder.
     

    Fields inherited from class org.eclipse.core.resources.IncrementalProjectBuilder

    AUTO_BUILD, CLEAN_BUILD, FULL_BUILD, INCREMENTAL_BUILD
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.eclipse.core.resources.IProject[]
    build(int kind, Map<String,String> args, org.eclipse.core.runtime.IProgressMonitor monitor)
     
    protected void
    clean(org.eclipse.core.runtime.IProgressMonitor monitor)
     
    protected void
    fullBuild(org.eclipse.core.runtime.IProgressMonitor monitor)
     
     
    protected void
    incrementalBuild(org.eclipse.core.resources.IResourceDelta delta, org.eclipse.core.runtime.IProgressMonitor monitor)
     
    protected boolean
    processResource(org.eclipse.core.resources.IResource resource, ActionType actionType, org.eclipse.core.runtime.IProgressMonitor monitor)
     

    Methods inherited from class org.eclipse.core.resources.IncrementalProjectBuilder

    forgetLastBuiltState, getBuildConfig, getCommand, getContext, getDelta, getProject, getRule, hasBeenBuilt, isInterrupted, needRebuild, rememberLastBuiltState, requestProjectRebuild, requestProjectsRebuild, setInitializationData, startupOnInitialize

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • BUILDER_ID

      public static final String BUILDER_ID
      The id of this translation builder. It can be used to register/deregister this builder for projects.
      See Also:
    • translatingProjectManager

      @Inject protected ITranslatingProjectManager translatingProjectManager
  • Constructor Details

    • TranslationBuilder

      public TranslationBuilder()
  • Method Details

    • getTranslatingProject

      protected ITranslatingProject getTranslatingProject()
    • build

      protected org.eclipse.core.resources.IProject[] build(int kind, Map<String,String> 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
    • 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
    • fullBuild

      protected void fullBuild(org.eclipse.core.runtime.IProgressMonitor monitor)
    • incrementalBuild

      protected void incrementalBuild(org.eclipse.core.resources.IResourceDelta delta, org.eclipse.core.runtime.IProgressMonitor monitor)
    • processResource

      protected boolean processResource(org.eclipse.core.resources.IResource resource, ActionType actionType, org.eclipse.core.runtime.IProgressMonitor monitor)