com.alveole.studio.web.refactoring
Class MoveParticipant

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

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

This MoveParticipant is a listener that watches java class moving from one package to another. If a class is moved, all interceptors, actions and result-types are updated.

Author:
sylvain

Constructor Summary
MoveParticipant()
           
 
Method Summary
 RefactoringStatus checkConditions(org.eclipse.core.runtime.IProgressMonitor pm, CheckConditionsContext context)
          Check conditions and initialize all transformations.
 Change createChange(org.eclipse.core.runtime.IProgressMonitor pm)
          Get prepared changes.
 java.lang.String getName()
          Gets a name for this participant.
protected  boolean initialize(java.lang.Object element)
          Initialize object to be moved.
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 moves a dir...
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MoveParticipant

public MoveParticipant()
Method Detail

createChange

public Change createChange(org.eclipse.core.runtime.IProgressMonitor pm)
                    throws org.eclipse.core.runtime.CoreException,
                           org.eclipse.core.runtime.OperationCanceledException
Get prepared changes. Changes are prepared during check of conditions.

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

getName

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


initialize

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


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 moves a dir...


checkConditions

public RefactoringStatus checkConditions(org.eclipse.core.runtime.IProgressMonitor pm,
                                         CheckConditionsContext context)
                                  throws org.eclipse.core.runtime.OperationCanceledException
Check conditions and initialize all transformations.

Throws:
org.eclipse.core.runtime.OperationCanceledException