com.alveole.studio.web.refactoring
Class RenameParticipant

java.lang.Object
  extended by org.eclipse.ltk.core.refactoring.participants.RenameParticipant
      extended by com.alveole.studio.web.refactoring.RenameParticipant

public class RenameParticipant
extends org.eclipse.ltk.core.refactoring.participants.RenameParticipant

This RefactoringParticipant is a listener that watches java class renaming. When a class or a JSP file is renamed, all references to it are changed from MVC Web Project files. If a class is renamed, all interceptors, actions and result-types are updated.

Author:
sylvain

Constructor Summary
RenameParticipant()
          Constructor.
 
Method Summary
 RefactoringStatus checkConditions(org.eclipse.core.runtime.IProgressMonitor pm, CheckConditionsContext context)
          Check conditions for this handler and prepare changes to be performed.
 Change createChange(org.eclipse.core.runtime.IProgressMonitor pm)
          Returns changes that were prepared during check.
 java.lang.String getName()
          Gets this participant name.
protected  boolean initialize(java.lang.Object element)
          Initialize object to be renamed.
protected  RefactoringStatus performActionInit(RefactoringStatus retStatus, AnyChange act)
          Performs an action initialization.
protected  RefactoringStatus renameDir(org.eclipse.core.resources.IFile projectFile, RefactoringStatus retStatus, org.eclipse.core.resources.IContainer from, org.eclipse.core.resources.IContainer to)
          Recursively rename a dir...
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RenameParticipant

public RenameParticipant()
Constructor.

Method Detail

createChange

public Change createChange(org.eclipse.core.runtime.IProgressMonitor pm)
                    throws org.eclipse.core.runtime.CoreException,
                           org.eclipse.core.runtime.OperationCanceledException
Returns changes that were prepared during check.

Throws:
org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.OperationCanceledException

getName

public java.lang.String getName()
Gets this participant name.


initialize

protected boolean initialize(java.lang.Object element)
Initialize object to be renamed.


performActionInit

protected RefactoringStatus performActionInit(RefactoringStatus retStatus,
                                              AnyChange act)
Performs an action initialization.


renameDir

protected RefactoringStatus renameDir(org.eclipse.core.resources.IFile projectFile,
                                      RefactoringStatus retStatus,
                                      org.eclipse.core.resources.IContainer from,
                                      org.eclipse.core.resources.IContainer to)
Recursively rename a dir...


checkConditions

public RefactoringStatus checkConditions(org.eclipse.core.runtime.IProgressMonitor pm,
                                         CheckConditionsContext context)
                                  throws org.eclipse.core.runtime.OperationCanceledException
Check conditions for this handler and prepare changes to be performed.

Throws:
org.eclipse.core.runtime.OperationCanceledException