mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Flash extract superclass: compute source root if target folder has been chosen by neighbour class (IDEA-95730)
This commit is contained in:
@@ -129,6 +129,8 @@ public class PlatformPackageUtil {
|
||||
psiDirectory = DirectoryChooserUtil.selectDirectory(project, dirs.toArray(new PsiDirectory[dirs.size()]), baseDir,
|
||||
File.separatorChar + packageName.replace('.', File.separatorChar));
|
||||
if (psiDirectory == null) return null;
|
||||
final VirtualFile sourceRoot = ProjectRootManager.getInstance(project).getFileIndex().getSourceRootForFile(psiDirectory.getVirtualFile());
|
||||
psiDirectory = PsiManager.getInstance(project).findDirectory(sourceRoot);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user