com.alveole.studio.web.managers.struts2.refactoring
Class Struts2RefactoringListener

java.lang.Object
  extended by com.alveole.studio.web.managers.struts2.refactoring.Struts2RefactoringListener
All Implemented Interfaces:
ProjectRefactorListener

public class Struts2RefactoringListener
extends java.lang.Object
implements ProjectRefactorListener

A listener that performs refactoring of references for Struts2.

Author:
sylvain

Constructor Summary
Struts2RefactoringListener()
           
 
Method Summary
 boolean hasReferencesToClass(Project project, java.lang.String name)
          Find all actions, interceptors, result-types... that makes a reference to the given class.
 boolean hasReferencesToFile(Project project, org.eclipse.core.resources.IFile file)
          Find all actions, interceptors, result-types... that makes a reference to the given class.
 boolean hasReferencesToMethod(Project project, java.lang.String className, java.lang.String name, java.lang.String signature)
          Find all actions that makes a reference to the given class and methos.
 void renameClass(Project project, java.lang.String oldName, java.lang.String newName)
          Rename all references to the given class.
 void renameFile(Project project, org.eclipse.core.resources.IFile file, org.eclipse.core.resources.IFile newName)
          Performs file renaming.
 void renameMethod(Project project, java.lang.String className, java.lang.String oldName, java.lang.String signature, java.lang.String newName)
          Rename all references to the given methos.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Struts2RefactoringListener

public Struts2RefactoringListener()
Method Detail

hasReferencesToClass

public boolean hasReferencesToClass(Project project,
                                    java.lang.String name)
Find all actions, interceptors, result-types... that makes a reference to the given class.

Specified by:
hasReferencesToClass in interface ProjectRefactorListener

hasReferencesToFile

public boolean hasReferencesToFile(Project project,
                                   org.eclipse.core.resources.IFile file)
Find all actions, interceptors, result-types... that makes a reference to the given class.

Specified by:
hasReferencesToFile in interface ProjectRefactorListener

renameFile

public void renameFile(Project project,
                       org.eclipse.core.resources.IFile file,
                       org.eclipse.core.resources.IFile newName)
Performs file renaming.

Specified by:
renameFile in interface ProjectRefactorListener

hasReferencesToMethod

public boolean hasReferencesToMethod(Project project,
                                     java.lang.String className,
                                     java.lang.String name,
                                     java.lang.String signature)
Find all actions that makes a reference to the given class and methos.

Specified by:
hasReferencesToMethod in interface ProjectRefactorListener

renameClass

public void renameClass(Project project,
                        java.lang.String oldName,
                        java.lang.String newName)
Rename all references to the given class.

Specified by:
renameClass in interface ProjectRefactorListener

renameMethod

public void renameMethod(Project project,
                         java.lang.String className,
                         java.lang.String oldName,
                         java.lang.String signature,
                         java.lang.String newName)
Rename all references to the given methos.

Specified by:
renameMethod in interface ProjectRefactorListener