mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
ValidateXmlTest fixed
This commit is contained in:
@@ -93,19 +93,18 @@ public class ValidateXmlActionHandler {
|
||||
myErrorReporter = errorReporter;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public VirtualFile getFile(String publicId, String systemId) {
|
||||
if (publicId == null) {
|
||||
if (systemId != null) {
|
||||
final String path = myXmlResourceResolver.getPathByPublicId(systemId);
|
||||
if (path != null) return UriUtil.findRelative(path, myFile);
|
||||
if (path != null) return UriUtil.findRelativeFile(path,null);
|
||||
final PsiFile file = myXmlResourceResolver.resolve(null, systemId);
|
||||
if (file != null) return file.getVirtualFile();
|
||||
}
|
||||
return myFile.getVirtualFile();
|
||||
}
|
||||
final String path = myXmlResourceResolver.getPathByPublicId(publicId);
|
||||
if (path != null) return UriUtil.findRelative(path, myFile);
|
||||
if (path != null) return UriUtil.findRelativeFile(path,null);
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user