Class CrossReferenceUpdateOperation
java.lang.Object
com._1c.g5.v8.dt.internal.refactoring.core.operation.CrossReferenceUpdateOperation
- All Implemented Interfaces:
IBmRefactoringOperation
,IRefactoringOperation
The abstract implementation of the
IRefactoringOperation
that updates BM Model Cross References.
This abstract class defines the next requirements:
- A collection of cross references contains only references (referencing objects) that belongs to the same BM Model (BM Engine).
- The provided transaction should be a transaction of the BM Model that is mentioned in the point above.
-
Constructor Summary
ConstructorsConstructorDescriptionCrossReferenceUpdateOperation
(IBmNamespace targetBmObjectNamespace, long targetBmObjectId, org.eclipse.emf.common.util.URI oldBmUri, Collection<IBmCrossReference> references) The constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
perform()
Performs the refactoring operation.void
setActiveTransaction
(IBmTransaction transaction) Sets the active transaction to the specified one.
-
Constructor Details
-
CrossReferenceUpdateOperation
public CrossReferenceUpdateOperation(IBmNamespace targetBmObjectNamespace, long targetBmObjectId, org.eclipse.emf.common.util.URI oldBmUri, Collection<IBmCrossReference> references) The constructor.- Parameters:
targetBmObjectNamespace
- the target BM object namespace.targetBmObjectId
- the target BM object id.oldBmUri
- the URI of the target BM object, cannot benull
.references
- the references, cannot benull
.
-
-
Method Details
-
perform
public void perform()Description copied from interface:IRefactoringOperation
Performs the refactoring operation.- Specified by:
perform
in interfaceIRefactoringOperation
-
setActiveTransaction
Description copied from interface:IBmRefactoringOperation
Sets the active transaction to the specified one.- Specified by:
setActiveTransaction
in interfaceIBmRefactoringOperation
- Parameters:
transaction
- the active transaction, can benull
.
-