Class CustomXtextBuilder

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

    public class CustomXtextBuilder
    extends org.eclipse.xtext.builder.impl.XtextBuilder
    implements IResourcePlan
    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 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)  
      Map<String,​IActivityDemandsDefinition> gatherActivities()
      Proclaim demands of resources for a given set of activities.
      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, build, createDeltaVisitor, doBuild, doClean, doClean, getResourceSetProvider, isDoBuildSpecialized, isDoCleanSpecialized, isOpened
      • 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
      • 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