Interface IRefactoringElementContext

  • All Known Implementing Classes:
    IRefactoringElementContext.Impl

    public interface IRefactoringElementContext
    The information of an element to be refactored. Based on this information a IRefactoringProvider chooses the implementation of the refactoring processor.
    • Method Detail

      • getTargetElementURI

        org.eclipse.emf.common.util.URI getTargetElementURI()
        Returns uri of the refactoring element (target element).
        Returns:
        uri of the refactoring element (never null).
      • getContextResourceURI

        org.eclipse.emf.common.util.URI getContextResourceURI()
        Returns uri of resource wich contains the target element.
        Returns:
        uri of resource wich contains the target element (never null).
      • getTargetElementEClass

        org.eclipse.emf.ecore.EClass getTargetElementEClass()
        Returns eclass of the target element.
        Returns:
        eclass of the target element (never null).
      • getTriggeringFile

        org.eclipse.core.resources.IFile getTriggeringFile()
        Returns file which contains the target element.
        Returns:
        file which contains the target element (never null).
      • getTriggeringEditorSelection

        org.eclipse.jface.viewers.ISelection getTriggeringEditorSelection()
        Returns selection which contains the element to be refactored.
        Returns:
        selection which contains the element to be refactored (never null).
      • getTriggeringEditor

        org.eclipse.ui.IEditorPart getTriggeringEditor()
        Opened editor from which refactoring was triggered
        Returns:
        the editor from which refactoring was triggered or null otherwise