Interface IRefactoringElementHandler

  • All Superinterfaces:
    org.eclipse.core.commands.IHandler, org.eclipse.core.commands.IHandler2

    public interface IRefactoringElementHandler
    extends org.eclipse.core.commands.IHandler2
    Basic interface for refactoring handler. Every handler which performs refactoring must implement this interface.

    The handler is top level UI entry point for refactoring. The handler must initialize refactoring controller, if initialization fails, refactoring must be stoped and user informed about the problem why refactoring cannot be done

    The main task of the handler is to provide appropriate IRefactoringStrategyProvider, find out what element or elements needs to be refactored, form refactoring context and delegate all refactoring work to appropriate refactoring controller

    See Also:
    IRefactoringElementContext, IRefactoringController
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Class<? extends IRefactoringStrategyProvider> getRefactoringStrategyProviderClass()
      Returns concrete refactoring strategy provider class for refactoring which this handler executes
      • Methods inherited from interface org.eclipse.core.commands.IHandler

        addHandlerListener, dispose, execute, isEnabled, isHandled, removeHandlerListener
      • Methods inherited from interface org.eclipse.core.commands.IHandler2

        setEnabled
    • Method Detail

      • getRefactoringStrategyProviderClass

        Class<? extends IRefactoringStrategyProvider> getRefactoringStrategyProviderClass()
        Returns concrete refactoring strategy provider class for refactoring which this handler executes
        Returns:
        concrete refactoring strategy provider class (never null)