mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
failing FilePathClassNameCompletionTest test moved to HtmlCompletionTest
This commit is contained in:
+3
-4
@@ -33,14 +33,13 @@ public class LightTempDirTestFixtureImpl extends BaseFixture implements TempDirT
|
||||
mySourceRoot = null;
|
||||
}
|
||||
|
||||
public VirtualFile copyFile(final VirtualFile file, String targetPath) {
|
||||
int pos = targetPath.lastIndexOf('/');
|
||||
final String path = pos < 0 ? "" : targetPath.substring(0, pos);
|
||||
public VirtualFile copyFile(final VirtualFile file, final String targetPath) {
|
||||
final String path = PathUtil.getParentPath(targetPath);
|
||||
return ApplicationManager.getApplication().runWriteAction(new Computable<VirtualFile>() {
|
||||
public VirtualFile compute() {
|
||||
try {
|
||||
VirtualFile targetDir = findOrCreateDir(path);
|
||||
return VfsUtil.copyFile(this, file, targetDir);
|
||||
return VfsUtil.copyFile(this, file, targetDir, PathUtil.getFileName(targetPath));
|
||||
}
|
||||
catch (IOException e) {
|
||||
throw new RuntimeException(e);
|
||||
|
||||
Reference in New Issue
Block a user