com.alveole.studio.web.refactoring
Class ActionUpdateFileRef

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

public class ActionUpdateFileRef
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, toName, warning
 
Constructor Summary
ActionUpdateFileRef(org.eclipse.core.resources.IFile projectFile, org.eclipse.core.resources.IFile fromName, org.eclipse.core.resources.IFile 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

ActionUpdateFileRef

public ActionUpdateFileRef(org.eclipse.core.resources.IFile projectFile,
                           org.eclipse.core.resources.IFile fromName,
                           org.eclipse.core.resources.IFile 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