handle src dir inside task dir
[idea/community.git] / python / educational-core / course-creator / src / com / jetbrains / edu / coursecreator / handlers / CCRenameHandler.java
index 9814a6631fe23c4d5ed1397ac4145defc18734b8..0be2ff5a9aa788b91dbe2ac8a356579360bc166a 100644 (file)
@@ -30,10 +30,10 @@ public abstract class CCRenameHandler implements RenameHandler {
       return false;
     }
     VirtualFile directory = ((PsiDirectory)element).getVirtualFile();
-    return isAvailable(directory.getName());
+    return isAvailable(directory);
   }
 
-  protected abstract boolean isAvailable(String name);
+  protected abstract boolean isAvailable(VirtualFile directory);
 
   @Override
   public boolean isRenaming(DataContext dataContext) {