Class CustomXtextBuilder

  • All Implemented Interfaces:
    org.eclipse.core.runtime.IExecutableExtension

    public class CustomXtextBuilder
    extends org.eclipse.xtext.builder.impl.XtextBuilder
    Customized Xtext builder. Skips building for DT files, but doesn't skip update task markers
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.eclipse.xtext.builder.impl.XtextBuilder

        org.eclipse.xtext.builder.impl.XtextBuilder.BuilderPreferences, org.eclipse.xtext.builder.impl.XtextBuilder.SchedulingOption
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.eclipse.core.resources.IProject[] build​(int kind, Map args, org.eclipse.core.runtime.IProgressMonitor monitor)  
      protected void cancelXtextParticipantJobs()
      Cancels all Job implements IXtextParticipantJob and linked with currrent project
      protected void clean​(org.eclipse.core.runtime.IProgressMonitor monitor)  
      protected void doBuild​(org.eclipse.xtext.builder.impl.ToBeBuilt toBeBuilt, Set<String> removedProjects, org.eclipse.core.runtime.IProgressMonitor monitor, org.eclipse.xtext.builder.IXtextBuilderParticipant.BuildType type)  
      protected void fullBuild​(org.eclipse.core.runtime.IProgressMonitor monitor, boolean isRecoveryBuild)  
      org.eclipse.core.runtime.jobs.ISchedulingRule getRule​(int kind, Map<String,​String> args)  
      protected void incrementalBuild​(org.eclipse.core.resources.IResourceDelta delta, org.eclipse.core.runtime.IProgressMonitor monitor)  
      protected boolean isBmDerivedStateBuild()
      Checks that bm derived state was build
      • Methods inherited from class org.eclipse.xtext.builder.impl.XtextBuilder

        addInfosFromTask, addInfosFromTaskAndBuild, addInfosFromTaskAndClean, createDeltaVisitor, doBuild, doClean, doClean, ensureBuilderStateLoaded, getInternalInterestingProjects, getReferencedProjects, getResourceSetProvider, isDoBuildSpecialized, isDoCleanSpecialized, isOpened, pollQueuedBuildData, pollQueuedBuildData, requestFullBuild, unsetWasFullBuildRequested, wasFullBuildRequested
      • Methods inherited from class org.eclipse.core.resources.IncrementalProjectBuilder

        forgetLastBuiltState, getBuildConfig, getCommand, getContext, getDelta, getProject, hasBeenBuilt, isInterrupted, needRebuild, rememberLastBuiltState, setInitializationData, startupOnInitialize
    • Constructor Detail

    • Method Detail

      • getRule

        public org.eclipse.core.runtime.jobs.ISchedulingRule getRule​(int kind,
                                                                     Map<String,​String> args)
        Overrides:
        getRule in class org.eclipse.xtext.builder.impl.XtextBuilder
      • build

        protected org.eclipse.core.resources.IProject[] build​(int kind,
                                                              Map args,
                                                              org.eclipse.core.runtime.IProgressMonitor monitor)
                                                       throws org.eclipse.core.runtime.CoreException
        Overrides:
        build in class org.eclipse.xtext.builder.impl.XtextBuilder
        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
        Overrides:
        incrementalBuild in class org.eclipse.xtext.builder.impl.XtextBuilder
        Throws:
        org.eclipse.core.runtime.CoreException
      • doBuild

        protected void doBuild​(org.eclipse.xtext.builder.impl.ToBeBuilt toBeBuilt,
                               Set<String> removedProjects,
                               org.eclipse.core.runtime.IProgressMonitor monitor,
                               org.eclipse.xtext.builder.IXtextBuilderParticipant.BuildType type)
                        throws org.eclipse.core.runtime.CoreException
        Overrides:
        doBuild in class org.eclipse.xtext.builder.impl.XtextBuilder
        Throws:
        org.eclipse.core.runtime.CoreException
      • fullBuild

        protected void fullBuild​(org.eclipse.core.runtime.IProgressMonitor monitor,
                                 boolean isRecoveryBuild)
                          throws org.eclipse.core.runtime.CoreException
        Overrides:
        fullBuild in class org.eclipse.xtext.builder.impl.XtextBuilder
        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.xtext.builder.impl.XtextBuilder
        Throws:
        org.eclipse.core.runtime.CoreException
      • cancelXtextParticipantJobs

        protected void cancelXtextParticipantJobs()
        Cancels all Job implements IXtextParticipantJob and linked with currrent project
      • isBmDerivedStateBuild

        protected boolean isBmDerivedStateBuild()
        Checks that bm derived state was build
        Returns:
        true if derived state was built, false otherwise