Class AbstractBslMdObjectHandlerRenameParticipant.MdObjectHandlerNameChange

java.lang.Object
org.eclipse.ltk.core.refactoring.Change
com._1c.g5.v8.dt.bsl.bm.ui.refactoring.AbstractBslMdObjectHandlerRenameParticipant.MdObjectHandlerNameChange
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable
Enclosing class:
AbstractBslMdObjectHandlerRenameParticipant

protected abstract static class AbstractBslMdObjectHandlerRenameParticipant.MdObjectHandlerNameChange extends org.eclipse.ltk.core.refactoring.Change
Change contains information about how handler will be changed
  • Field Details

    • object

      protected final org.eclipse.emf.ecore.EObject object
    • feature

      protected final org.eclipse.emf.ecore.EStructuralFeature feature
    • newName

      protected final String newName
    • transaction

      protected IBmTransaction transaction
  • Constructor Details

    • MdObjectHandlerNameChange

      public MdObjectHandlerNameChange(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature, String newName)
      Constructor
      Parameters:
      object - object containing refactoring handler, can't be null
      feature - EStructuralFeature corresponding to the refactoring handler, can't be null
      newName - new name of the handler, can't be null
  • Method Details

    • setTransaction

      public void setTransaction(IBmTransaction transaction)
      Sets actual IBmTransaction
      Parameters:
      session - actual IBmTransaction, can't be null
    • 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