mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix tests
This commit is contained in:
@@ -74,12 +74,7 @@ public class AndroidXmlSchemaProvider extends XmlSchemaProvider {
|
||||
public Result<XmlFile> compute() {
|
||||
final URL resource = AndroidXmlSchemaProvider.class.getResource("android.xsd");
|
||||
final VirtualFile fileByURL = VfsUtil.findFileByURL(resource);
|
||||
XmlFile result = ApplicationManager.getApplication().runWriteAction(new Computable<XmlFile>() {
|
||||
@Override
|
||||
public XmlFile compute() {
|
||||
return (XmlFile)PsiManager.getInstance(module.getProject()).findFile(fileByURL).copy();
|
||||
}
|
||||
});
|
||||
XmlFile result = (XmlFile)PsiManager.getInstance(module.getProject()).findFile(fileByURL).copy();
|
||||
return new Result<XmlFile>(result, PsiModificationTracker.MODIFICATION_COUNT);
|
||||
}
|
||||
}, false);
|
||||
|
||||
Reference in New Issue
Block a user