Class RightTemplateProcessor
java.lang.Object
com.e1c.langtool.v8.dt.right.templates.RightTemplateProcessor
- All Implemented Interfaces:
IBasicProcessor
- Direct Known Subclasses:
RightTemplateFeaturesCollector
Abstract processor of right template model object.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.eclipse.core.runtime.IProgressMonitorprotected final org.eclipse.emf.ecore.EObjectprotected IResourceLookup -
Constructor Summary
ConstructorsConstructorDescriptionRightTemplateProcessor(org.eclipse.emf.ecore.EObject object) Initialize withEObject -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract <T extends org.eclipse.emf.ecore.EObject>
voidProcesses concrete object of Right template objectprotected voiddoProcessInternal(Collection<? extends org.eclipse.emf.ecore.EObject> objects) protected voiddoProcessInternal(org.eclipse.emf.ecore.EObject obj) booleanChecks that execution is canceledbooleanChecks if is process sub objects.protected booleanisSupported(org.eclipse.emf.ecore.EObject obj) protected booleanvoidprocess(org.eclipse.core.runtime.IProgressMonitor monitor) Start validating for all content inIBmObjectvoidsetProcessChildObjects(boolean processChildObjects) Sets the process sub objects.protected voidsetWaitDerivedDataComputation(boolean waitDerivedDataComputation)
-
Field Details
-
object
protected final org.eclipse.emf.ecore.EObject object -
monitor
protected org.eclipse.core.runtime.IProgressMonitor monitor -
resourceLookup
-
-
Constructor Details
-
RightTemplateProcessor
public RightTemplateProcessor(org.eclipse.emf.ecore.EObject object) Initialize withEObject- Parameters:
object-EObjectpart of EObject content, can't benull
-
-
Method Details
-
isCanceled
public boolean isCanceled()Checks that execution is canceled- Specified by:
isCanceledin interfaceIBasicProcessor- Returns:
truein case execution is canceled,falseotherwise
-
isProcessChildObjects
public boolean isProcessChildObjects()Checks if is process sub objects.- Returns:
- true, if is process sub objects
-
setProcessChildObjects
public void setProcessChildObjects(boolean processChildObjects) Sets the process sub objects.- Parameters:
processChildObjects- the new process sub objects
-
process
public void process(org.eclipse.core.runtime.IProgressMonitor monitor) Start validating for all content inIBmObject- Specified by:
processin interfaceIBasicProcessor
-
isSupported
protected boolean isSupported(org.eclipse.emf.ecore.EObject obj) -
isWaitDerivedDataComputation
protected boolean isWaitDerivedDataComputation() -
setWaitDerivedDataComputation
protected void setWaitDerivedDataComputation(boolean waitDerivedDataComputation) -
doProcess
protected abstract <T extends org.eclipse.emf.ecore.EObject> void doProcess(T object, Class<T> clazz) Processes concrete object of Right template object- Parameters:
object- processing object, can't benull
-
doProcessInternal
-
doProcessInternal
protected void doProcessInternal(org.eclipse.emf.ecore.EObject obj)
-