VirtualFileFinder refactoring

This commit is contained in:
Mikhael Bogdanov
2014-02-26 15:28:54 +04:00
parent ead2f84a29
commit cd030ec88e
6 changed files with 7 additions and 6 deletions
@@ -106,7 +106,7 @@ public class InlineCodegenUtil {
public static VirtualFile findVirtualFile(@NotNull Project project, @NotNull FqName containerFqName, boolean onlyKotlin) {
VirtualFileFinder fileFinder = ServiceManager.getService(project, VirtualFileFinder.class);
if (onlyKotlin) {
return fileFinder.findVirtualFile(containerFqName);
return fileFinder.findVirtualFileWithHeader(containerFqName);
} else {
return fileFinder.findVirtualFile(containerFqName.asString().replace('.', '/'));
}