com.alveole.studio.web.refactoring
Class ActionUpdateMethodRef

java.lang.Object
  extended by Change
      extended by com.alveole.studio.web.refactoring.AnyChange
          extended by com.alveole.studio.web.refactoring.ActionUpdateMethodRef

public class ActionUpdateMethodRef
extends AnyChange

This change action performs changing Struts2 action fully qualified class name from a MVC Web Project.

Author:
sylvain

Field Summary
 
Fields inherited from class com.alveole.studio.web.refactoring.AnyChange
autoSave, fromName, project, targetFile, toName, warning
 
Constructor Summary
ActionUpdateMethodRef(org.eclipse.core.resources.IFile projectFile, java.lang.String className, java.lang.String fromName, java.lang.String signature, java.lang.String toName)
           
 
Method Summary
 boolean init()
          Initializes this action, and return true if this action should be performed, false else.
 Change perform(org.eclipse.core.runtime.IProgressMonitor pm)
           
 
Methods inherited from class com.alveole.studio.web.refactoring.AnyChange
getModifiedElement, getName, getWarning, initializeValidationData, isValid, openProject, setWarning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionUpdateMethodRef

public ActionUpdateMethodRef(org.eclipse.core.resources.IFile projectFile,
                             java.lang.String className,
                             java.lang.String fromName,
                             java.lang.String signature,
                             java.lang.String toName)
Method Detail

init

public boolean init()
Initializes this action, and return true if this action should be performed, false else. If false is return, getWarning() may not be null.

Specified by:
init in class AnyChange
Returns:

perform

public Change perform(org.eclipse.core.runtime.IProgressMonitor pm)
               throws org.eclipse.core.runtime.CoreException
Throws:
org.eclipse.core.runtime.CoreException