Package com._1c.g5.v8.dt.bsl.ui.editor
Class BslXtextDocumentProvider.BslValidationJob
- java.lang.Object
-
- org.eclipse.core.runtime.PlatformObject
-
- org.eclipse.core.internal.jobs.InternalJob
-
- org.eclipse.core.runtime.jobs.Job
-
- org.eclipse.xtext.ui.editor.validation.ValidationJob
-
- com._1c.g5.v8.dt.bsl.ui.editor.BslXtextDocumentProvider.BslValidationJob
-
- All Implemented Interfaces:
Comparable
,org.eclipse.core.runtime.IAdaptable
- Enclosing class:
- BslXtextDocumentProvider
public static class BslXtextDocumentProvider.BslValidationJob extends org.eclipse.xtext.ui.editor.validation.ValidationJob
CustomValidationJob
for Bsl language. Provides logic for partial update of validation issues in case of partial reparse. Also has methods for skip validation.
-
-
Constructor Summary
Constructors Constructor Description BslValidationJob(org.eclipse.xtext.validation.IResourceValidator xtextResourceChecker, org.eclipse.xtext.util.concurrent.IReadAccess<org.eclipse.xtext.resource.XtextResource> xtextDocument, org.eclipse.xtext.ui.editor.validation.IValidationIssueProcessor validationIssueProcessor, org.eclipse.xtext.validation.CheckMode checkMode, org.eclipse.jface.text.source.IAnnotationModel annotationModel)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<org.eclipse.xtext.validation.Issue>
createIssues(org.eclipse.core.runtime.IProgressMonitor monitor)
boolean
isSkip()
Checks that skip validation job is neededvoid
skip(boolean skip)
Skips validation.-
Methods inherited from class org.eclipse.xtext.ui.editor.validation.ValidationJob
belongsTo, getCheckMode, getResourceValidator, getXtextDocument, run
-
Methods inherited from class org.eclipse.core.runtime.jobs.Job
addJobChangeListener, cancel, canceling, create, create, createSystem, createSystem, createSystem, done, getJobGroup, getJobManager, getName, getPriority, getProperty, getResult, getRule, getState, getThread, isBlocking, isSystem, isUser, join, join, removeJobChangeListener, schedule, schedule, setJobGroup, setName, setPriority, setProgressGroup, setProperty, setRule, setSystem, setThread, setUser, shouldRun, shouldSchedule, sleep, toString, wakeUp, wakeUp, yieldRule
-
-
-
-
Constructor Detail
-
BslValidationJob
public BslValidationJob(org.eclipse.xtext.validation.IResourceValidator xtextResourceChecker, org.eclipse.xtext.util.concurrent.IReadAccess<org.eclipse.xtext.resource.XtextResource> xtextDocument, org.eclipse.xtext.ui.editor.validation.IValidationIssueProcessor validationIssueProcessor, org.eclipse.xtext.validation.CheckMode checkMode, org.eclipse.jface.text.source.IAnnotationModel annotationModel)
Constructor- Parameters:
xtextResourceChecker
- actualIResourceValidator
, cannot benull
xtextDocument
- actualIReadAccess
forXtextResource
, cannot benull
validationIssueProcessor
- actualIValidationIssueProcessor
, cannot benull
checkMode
-CheckMode
for validation, cannot benull
annotationModel
-IAnnotationModel
for create annnotation for new validation issue, cannot benull
-
-
Method Detail
-
skip
public void skip(boolean skip)
Skips validation.- Parameters:
skip
- iftrue
job will be canceled and there is no validation until skip ==true
. iftrue
createIssues(IProgressMonitor)
returns old validation issue.
-
isSkip
public boolean isSkip()
Checks that skip validation job is needed- Returns:
true
if skip validation job is needed,false
otherwise
-
createIssues
public List<org.eclipse.xtext.validation.Issue> createIssues(org.eclipse.core.runtime.IProgressMonitor monitor)
- Overrides:
createIssues
in classorg.eclipse.xtext.ui.editor.validation.ValidationJob
-
-