Class Rename

  • All Implemented Interfaces:
    org.eclipse.core.runtime.IAdaptable

    public class Rename
    extends org.eclipse.ltk.core.refactoring.participants.RenameParticipant
    Implements refactoring rename action with do/undo.
    Author:
    Mikael Andersson, Christopher Mindus
    • Constructor Summary

      Constructors 
      ConstructorDescription
      Rename()
      Default Eclipse constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      org.eclipse.ltk.core.refactoring.RefactoringStatuscheckConditions​(org.eclipse.core.runtime.IProgressMonitor pm, org.eclipse.ltk.core.refactoring.participants.CheckConditionsContext context) 
      org.eclipse.ltk.core.refactoring.ChangecreateChange​(org.eclipse.core.runtime.IProgressMonitor pm) 
      java.lang.StringgetName() 
      protected booleaninitialize​(java.lang.Object element) 
      • Methods inherited from class org.eclipse.ltk.core.refactoring.participants.RenameParticipant

        getArguments, initialize
      • Methods inherited from class org.eclipse.ltk.core.refactoring.participants.RefactoringParticipant

        createPreChange, getProcessor, getTextChange, initialize
      • Methods inherited from class org.eclipse.core.runtime.PlatformObject

        getAdapter
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Rename

        public Rename()
        Default Eclipse constructor.
    • Method Detail

      • initialize

        protected boolean initialize​(java.lang.Object element)
        Specified by:
        initialize in class org.eclipse.ltk.core.refactoring.participants.RefactoringParticipant
      • getName

        public java.lang.String getName()
        Specified by:
        getName in class org.eclipse.ltk.core.refactoring.participants.RefactoringParticipant
      • checkConditions

        public org.eclipse.ltk.core.refactoring.RefactoringStatus checkConditions​(org.eclipse.core.runtime.IProgressMonitor pm,
                                                                                  org.eclipse.ltk.core.refactoring.participants.CheckConditionsContext context)
                                                                           throws org.eclipse.core.runtime.OperationCanceledException
        Specified by:
        checkConditions in class org.eclipse.ltk.core.refactoring.participants.RefactoringParticipant
        Throws:
        org.eclipse.core.runtime.OperationCanceledException
      • createChange

        public org.eclipse.ltk.core.refactoring.Change createChange​(org.eclipse.core.runtime.IProgressMonitor pm)
                                                             throws org.eclipse.core.runtime.CoreException,
                                                                    org.eclipse.core.runtime.OperationCanceledException
        Specified by:
        createChange in class org.eclipse.ltk.core.refactoring.participants.RefactoringParticipant
        Throws:
        org.eclipse.core.runtime.CoreException
        org.eclipse.core.runtime.OperationCanceledException