package com.chrisfolger.needsmoredojo.intellij.refactoring;

import com.intellij.psi.PsiElement;
import com.intellij.refactoring.listeners.RefactoringElementListener;
import org.jetbrains.annotations.NotNull;

public class RenameRefactoringListener implements RefactoringElementListener {
    private PsiElement originalFile = null;

    public RenameRefactoringListener(PsiElement originalFile)
    {
        this.originalFile = originalFile;
    }

    @Override
    public void elementMoved(@NotNull PsiElement psiElement) {
        //To change body of implemented methods use File | Settings | File Templates.
    }

    @Override
    public void elementRenamed(@NotNull PsiElement psiElement) {
    }
}

@@ -606,32 +606,318 @@
 mplates.%0A    %7D%0A%0A
+    /**%0A     * get all other js files IN PROJECT SOURCES%0A     if the file is an AMD module%0A     get the list of defines%0A     for each define%0A     determine if the define has a match%0A     if it does:%0A     rename it appropriately%0A     use a rename action to rename the reference%0A     */%0A%0A
     @Override%0A  
@@ -972,23 +972,28 @@
  psiElement)
+%0A   
  %7B%0A
+%0A
     %7D%0A%7D%0A

add general algorithm