org.eclipse.cdt.internal.refactoring
Class CRenameProcessor

java.lang.Object
  extended by org.eclipse.core.runtime.PlatformObject
      extended by org.eclipse.ltk.core.refactoring.participants.RefactoringProcessor
          extended by org.eclipse.ltk.core.refactoring.participants.RenameProcessor
              extended by org.eclipse.cdt.internal.refactoring.CRenameProcessor
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable

public class CRenameProcessor
extends org.eclipse.ltk.core.refactoring.participants.RenameProcessor

This is the processor used for the rename. It decides which of the delegates to use and forwards further calls to the delegate.


Field Summary
static java.lang.String IDENTIFIER
           
 
Constructor Summary
CRenameProcessor(CRefactory refactoringManager, CRefactoringArgument arg)
           
 
Method Summary
 org.eclipse.ltk.core.refactoring.RefactoringStatus checkFinalConditions(org.eclipse.core.runtime.IProgressMonitor pm, org.eclipse.ltk.core.refactoring.participants.CheckConditionsContext context)
           
 org.eclipse.ltk.core.refactoring.RefactoringStatus checkInitialConditions(org.eclipse.core.runtime.IProgressMonitor pm)
           
 org.eclipse.ltk.core.refactoring.Change createChange(org.eclipse.core.runtime.IProgressMonitor pm)
           
 CRefactoringArgument getArgument()
           
 ASTManager getAstManager()
           
 int getAvailableOptions()
           
 java.lang.Object[] getElements()
           
 java.lang.String getIdentifier()
           
 CRefactory getManager()
           
 int getOptionsEnablingScope()
           
 int getOptionsForcingPreview()
           
 java.lang.String getProcessorName()
           
 java.lang.String getReplacementText()
           
 int getScope()
           
 int getSelectedOptions()
           
 java.lang.String getWorkingSet()
           
 boolean isApplicable()
           
 org.eclipse.ltk.core.refactoring.participants.RefactoringParticipant[] loadParticipants(org.eclipse.ltk.core.refactoring.RefactoringStatus status, org.eclipse.ltk.core.refactoring.participants.SharableParticipants sharedParticipants)
           
 void setReplacementText(java.lang.String replacementText)
           
 void setScope(int scope)
           
 void setSelectedOptions(int selectedOptions)
           
 void setWorkingSet(java.lang.String workingSet)
           
 
Methods inherited from class org.eclipse.ltk.core.refactoring.participants.RefactoringProcessor
getRefactoring, postCreateChange
 
Methods inherited from class org.eclipse.core.runtime.PlatformObject
getAdapter
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IDENTIFIER

public static final java.lang.String IDENTIFIER
See Also:
Constant Field Values
Constructor Detail

CRenameProcessor

public CRenameProcessor(CRefactory refactoringManager,
                        CRefactoringArgument arg)
Method Detail

getArgument

public CRefactoringArgument getArgument()

getElements

public java.lang.Object[] getElements()
Specified by:
getElements in class org.eclipse.ltk.core.refactoring.participants.RefactoringProcessor

getProcessorName

public java.lang.String getProcessorName()
Specified by:
getProcessorName in class org.eclipse.ltk.core.refactoring.participants.RefactoringProcessor

isApplicable

public boolean isApplicable()
                     throws org.eclipse.core.runtime.CoreException
Specified by:
isApplicable in class org.eclipse.ltk.core.refactoring.participants.RefactoringProcessor
Throws:
org.eclipse.core.runtime.CoreException

checkInitialConditions

public org.eclipse.ltk.core.refactoring.RefactoringStatus checkInitialConditions(org.eclipse.core.runtime.IProgressMonitor pm)
                                                                          throws org.eclipse.core.runtime.CoreException,
                                                                                 org.eclipse.core.runtime.OperationCanceledException
Specified by:
checkInitialConditions in class org.eclipse.ltk.core.refactoring.participants.RefactoringProcessor
Throws:
org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.OperationCanceledException

checkFinalConditions

public org.eclipse.ltk.core.refactoring.RefactoringStatus checkFinalConditions(org.eclipse.core.runtime.IProgressMonitor pm,
                                                                               org.eclipse.ltk.core.refactoring.participants.CheckConditionsContext context)
                                                                        throws org.eclipse.core.runtime.CoreException,
                                                                               org.eclipse.core.runtime.OperationCanceledException
Specified by:
checkFinalConditions in class org.eclipse.ltk.core.refactoring.participants.RefactoringProcessor
Throws:
org.eclipse.core.runtime.CoreException
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.RefactoringProcessor
Throws:
org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.OperationCanceledException

loadParticipants

public org.eclipse.ltk.core.refactoring.participants.RefactoringParticipant[] loadParticipants(org.eclipse.ltk.core.refactoring.RefactoringStatus status,
                                                                                               org.eclipse.ltk.core.refactoring.participants.SharableParticipants sharedParticipants)
                                                                                        throws org.eclipse.core.runtime.CoreException
Specified by:
loadParticipants in class org.eclipse.ltk.core.refactoring.participants.RefactoringProcessor
Throws:
org.eclipse.core.runtime.CoreException

getAvailableOptions

public int getAvailableOptions()

getOptionsForcingPreview

public int getOptionsForcingPreview()

getOptionsEnablingScope

public int getOptionsEnablingScope()

getIdentifier

public java.lang.String getIdentifier()
Specified by:
getIdentifier in class org.eclipse.ltk.core.refactoring.participants.RefactoringProcessor

getScope

public int getScope()

setScope

public void setScope(int scope)

getSelectedOptions

public int getSelectedOptions()

setSelectedOptions

public void setSelectedOptions(int selectedOptions)

getWorkingSet

public java.lang.String getWorkingSet()

setWorkingSet

public void setWorkingSet(java.lang.String workingSet)

getReplacementText

public java.lang.String getReplacementText()

setReplacementText

public void setReplacementText(java.lang.String replacementText)

getManager

public CRefactory getManager()

getAstManager

public ASTManager getAstManager()