mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-10 13:17:09 +07:00
copy/paste: open created file in the editor
This commit is contained in:
@@ -355,7 +355,7 @@ public class CopyClassesHandler extends CopyHandlerDelegateBase {
|
||||
codeStyleManager.shortenClassReferences(expression);
|
||||
}
|
||||
new OptimizeImportsProcessor(project, createdFiles, null).run();
|
||||
return newElement;
|
||||
return newElement != null ? newElement : createdFiles.length > 0 ? createdFiles[0] : null;
|
||||
}
|
||||
|
||||
private static PsiFile copy(@NotNull PsiFile file, PsiDirectory directory, String name, String relativePath) {
|
||||
|
||||
Reference in New Issue
Block a user