Class UndoBmObjectTextContentChange<T extends org.eclipse.emf.ecore.EObject>

  • Type Parameters:
    T - type corresponding to BmObjectTextContentChange
    All Implemented Interfaces:
    org.eclipse.core.runtime.IAdaptable

    public class UndoBmObjectTextContentChange<T extends org.eclipse.emf.ecore.EObject>
    extends org.eclipse.ltk.core.refactoring.Change
    • Constructor Detail

      • UndoBmObjectTextContentChange

        public UndoBmObjectTextContentChange​(String name,
                                             T object,
                                             org.eclipse.emf.ecore.EStructuralFeature feature,
                                             String oldContent)
        Constructor
        Parameters:
        name - name of the change, can't be null
        object - object which attribute will be changed by this Change, can't be null
        feature - EStructuralFeature corresponding to the changing text content, can't be null
        oldContent - aold content which was changed by BmObjectTextContentChange, can't be null
    • Method Detail

      • getName

        public String getName()
        Specified by:
        getName in class org.eclipse.ltk.core.refactoring.Change
      • initializeValidationData

        public void initializeValidationData​(org.eclipse.core.runtime.IProgressMonitor pm)
        Specified by:
        initializeValidationData in class org.eclipse.ltk.core.refactoring.Change
      • isValid

        public org.eclipse.ltk.core.refactoring.RefactoringStatus isValid​(org.eclipse.core.runtime.IProgressMonitor pm)
                                                                   throws org.eclipse.core.runtime.CoreException,
                                                                          org.eclipse.core.runtime.OperationCanceledException
        Specified by:
        isValid in class org.eclipse.ltk.core.refactoring.Change
        Throws:
        org.eclipse.core.runtime.CoreException
        org.eclipse.core.runtime.OperationCanceledException
      • perform

        public org.eclipse.ltk.core.refactoring.Change perform​(org.eclipse.core.runtime.IProgressMonitor pm)
                                                        throws org.eclipse.core.runtime.CoreException
        Specified by:
        perform in class org.eclipse.ltk.core.refactoring.Change
        Throws:
        org.eclipse.core.runtime.CoreException
      • getModifiedElement

        public Object getModifiedElement()
        Specified by:
        getModifiedElement in class org.eclipse.ltk.core.refactoring.Change