Interface IDeleteRefactoringContributor

    • Method Detail

      • createParticipatingOperation

        RefactoringOperationDescriptor createParticipatingOperation​(org.eclipse.emf.ecore.EObject object,
                                                                    RefactoringSettings settings,
                                                                    RefactoringStatus status)
        The method that is invoked during preparation phase of refactoring.
        Returns RefactoringOperationDescriptor with the refactoring operation that performs custom logic for object being deleted.

        If some conditions are not satisfied the refactoring status should be filled with the appropriate error or warning message.

        Parameters:
        object - the object being deleted, cannot be null.
        settings - the refactoring settings, cannot be null.
        status - the refactoring status, cannot be null.
        Returns:
        refactoring operation descriptor or null.
      • createCleanReferenceOperation

        RefactoringOperationDescriptor createCleanReferenceOperation​(IBmObject targetObject,
                                                                     IBmObject referencingObject,
                                                                     org.eclipse.emf.ecore.EStructuralFeature feature,
                                                                     RefactoringSettings settings,
                                                                     RefactoringStatus status)
        The method that is invoked during preparation phase of refactoring.
        Returns RefactoringOperationDescriptor with the refactoring operation that cleans reference of the targetObject.

        If some conditions are not satisfied the refactoring status should be filled with the appropriate error or warning message.

        Parameters:
        targetObject - the object being deleted, cannot be null.
        referencingObject - the referencing object, cannot be null.
        feature - the reference to clean, cannot be null.
        settings - the refactoring settings, cannot be null.
        status - the refactoring status, cannot be null.
        Returns:
        refactoring operation descriptor or null.