Class BslMdObjectHandlerRenameParticipantServiceProvider

java.lang.Object
com._1c.g5.v8.dt.bsl.bm.ui.refactoring.BslMdObjectHandlerRenameParticipantServiceProvider

public class BslMdObjectHandlerRenameParticipantServiceProvider extends Object
Special service for accumulating all IBslMdObjectHandlerRenameParticipant.
  • Constructor Details

    • BslMdObjectHandlerRenameParticipantServiceProvider

      public BslMdObjectHandlerRenameParticipantServiceProvider()
  • Method Details

    • createChanges

      public List<org.eclipse.ltk.core.refactoring.Change> createChanges(org.eclipse.emf.common.util.URI resourceUri, Module module, Method method, String newName, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.OperationCanceledException, org.eclipse.core.runtime.CoreException
      Creates a Change object that contains the workspace modifications of this participant to be executed after the changes from the refactoring are executed. Note that this implies that the undo change of the returned Change object will be executed before the undo changes from the refactoring have been executed. Change created by this method contains information about changing the name of the handler referencing to Bsl method in metadata objects
      Parameters:
      resourceUri - URI to the Bsl resource of target refactoring object, can't be null
      module - actual Module corresponding to the target refactoring object, can't be null
      method - actual renaming Method, can't be null
      newName - new name of the Bsl method, can't be null
      pm - actual IProgressMonitor, can't be null
      Returns:
      created change, can be null if there is no changing in metadata object handlers
      Throws:
      org.eclipse.core.runtime.CoreException - if error was occurred in refactoring
      org.eclipse.core.runtime.OperationCanceledException - if operation was canceled
    • getAllParticipants

      protected List<IBslMdObjectHandlerRenameParticipant> getAllParticipants()
      Gets all registered participants
      Returns:
      all registered IBslMdObjectHandlerRenameParticipant participants, never null