Class DisableAllRule
- java.lang.Object
-
- com._1c.g5.aef2.standard.definitions.rules.AbstractRule
-
- com._1c.g5.v8.dt.ui.aef.definitions.rules.AbstractRule
-
- com._1c.g5.v8.dt.ui.aef.definitions.rules.DisableAllRule
-
- All Implemented Interfaces:
IRule
- Direct Known Subclasses:
CommonAttributeRule
,MdObjectAvailabilityRule
,ModelEditingSupportRule
public class DisableAllRule extends AbstractRule
The special rule that disables all definitions specified for the concrete instance.
-
-
Constructor Summary
Constructors Constructor Description DisableAllRule(Supplier<Iterable<IDefinition>> definitionSupplier)
Creates a new rule.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
buildSingleObject(org.eclipse.emf.ecore.EObject object, IV8Project v8project)
Builds statements for each of selected object.protected void
disableAll()
Disables all components that corresponds to the definitions provided by rule definition supplier.-
Methods inherited from class com._1c.g5.v8.dt.ui.aef.definitions.rules.AbstractRule
buildSingleObject, getProject, getResult, isMobileApplicationOnly
-
Methods inherited from class com._1c.g5.aef2.standard.definitions.rules.AbstractRule
componentDefinition, componentDefinition, componentDefinition, componentDefinition, componentDefinition, componentTarget, disable, disable, disable, disable, disable, enable, enable, enable, enable, enable, hide, hide, hide, hide, hide, multiFeatureDisable, multiFeatureEnable, multiFeatureHide, multiFeatureShow, show, show, show, show, show
-
-
-
-
Constructor Detail
-
DisableAllRule
public DisableAllRule(Supplier<Iterable<IDefinition>> definitionSupplier)
Creates a new rule.- Parameters:
definitionSupplier
- the supplier of the definitions, cannot benull
.
-
-
Method Detail
-
buildSingleObject
protected void buildSingleObject(org.eclipse.emf.ecore.EObject object, IV8Project v8project)
Description copied from class:AbstractRule
Builds statements for each of selected object.- Specified by:
buildSingleObject
in classAbstractRule
- Parameters:
object
- the object.v8project
- the V8 project for object.
-
disableAll
protected void disableAll()
Disables all components that corresponds to the definitions provided by rule definition supplier.
-
-