Package com._1c.g5.v8.dt.bm.xtext
Class CustomXtextBuilder
- java.lang.Object
-
- org.eclipse.core.internal.events.InternalBuilder
-
- org.eclipse.core.resources.IncrementalProjectBuilder
-
- org.eclipse.xtext.builder.impl.XtextBuilder
-
- com._1c.g5.v8.dt.bm.xtext.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
-
-
Field Summary
Fields Modifier and Type Field Description protected static CaseInsensitiveString
BSL_EXT
protected static Set<CaseInsensitiveString>
DT_XTEXT_FILE_EXTENSIONS
protected static Set<CaseInsensitiveString>
FILE_EXTENSIONS_TO_SKIP
protected static CaseInsensitiveString
XDTO_EXT
-
Constructor Summary
Constructors Constructor Description CustomXtextBuilder(IDtHostResourceManager hostResourceManager)
-
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 allJob
implementsIXtextParticipantJob
and linked with currrent projectprotected 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
-
-
-
-
Field Detail
-
BSL_EXT
protected static final CaseInsensitiveString BSL_EXT
-
XDTO_EXT
protected static final CaseInsensitiveString XDTO_EXT
-
DT_XTEXT_FILE_EXTENSIONS
protected static final Set<CaseInsensitiveString> DT_XTEXT_FILE_EXTENSIONS
-
FILE_EXTENSIONS_TO_SKIP
protected static final Set<CaseInsensitiveString> FILE_EXTENSIONS_TO_SKIP
-
-
Constructor Detail
-
CustomXtextBuilder
@Inject public CustomXtextBuilder(IDtHostResourceManager hostResourceManager)
-
-
Method Detail
-
getRule
public org.eclipse.core.runtime.jobs.ISchedulingRule getRule(int kind, Map<String,String> args)
- Overrides:
getRule
in classorg.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 classorg.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 classorg.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 classorg.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 classorg.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 classorg.eclipse.xtext.builder.impl.XtextBuilder
- Throws:
org.eclipse.core.runtime.CoreException
-
cancelXtextParticipantJobs
protected void cancelXtextParticipantJobs()
Cancels allJob
implementsIXtextParticipantJob
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
-
-