Class DeleteFormAttributeTask
- java.lang.Object
-
- com._1c.g5.v8.bm.integration.AbstractBmTask<Void>
-
- com._1c.g5.v8.dt.internal.form.service.task.AbstractFormAttributeTask
-
- com._1c.g5.v8.dt.form.service.attribute.DeleteFormAttributeTask
-
- All Implemented Interfaces:
IBmPostUndoRedoHandler
,IBmTask<Void>
public class DeleteFormAttributeTask extends com._1c.g5.v8.dt.internal.form.service.task.AbstractFormAttributeTask
The task deletes the specified form attribute.
It usesFormAttributeManagementService
to support the model integrity.
-
-
Constructor Summary
Constructors Constructor Description DeleteFormAttributeTask(FormAttributeManagementService managementService, IProjectFileSystemSupport projectFileSystemSupport, AbstractFormAttribute attribute, boolean removeItems)
Creates a new task.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
execute(IBmTransaction transaction, AbstractFormAttribute attribute)
Performs the BM task logic related toattribute
manipulation.-
Methods inherited from class com._1c.g5.v8.dt.internal.form.service.task.AbstractFormAttributeTask
execute, onRedo, onUndo
-
Methods inherited from class com._1c.g5.v8.bm.integration.AbstractBmTask
getId, getName, getServiceId
-
-
-
-
Constructor Detail
-
DeleteFormAttributeTask
public DeleteFormAttributeTask(FormAttributeManagementService managementService, IProjectFileSystemSupport projectFileSystemSupport, AbstractFormAttribute attribute, boolean removeItems)
Creates a new task.- Parameters:
managementService
- the management service, cannot benull
projectFileSystemSupport
- theIProjectFileSystemSupport
instance, cannot benull
.attribute
- the attribute being deleted, cannot benull
.removeItems
- the flag indicating whether dependent objects should be deleted or not. If it istrue
all related items will be removed, if it isfalse
the references to the attribute will be cleared.
-
-
Method Detail
-
execute
protected void execute(IBmTransaction transaction, AbstractFormAttribute attribute)
Description copied from class:com._1c.g5.v8.dt.internal.form.service.task.AbstractFormAttributeTask
Performs the BM task logic related toattribute
manipulation.- Specified by:
execute
in classcom._1c.g5.v8.dt.internal.form.service.task.AbstractFormAttributeTask
- Parameters:
transaction
- the BM transaction, cannot benull
.attribute
- the attribute to manipulate, cannot benull
.
-
-