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:
+5
-1
@@ -50,6 +50,10 @@ public class NoNamespaceSchemaProvider extends XmlSchemaProvider {
|
||||
|
||||
@Override
|
||||
public boolean isAvailable(@NotNull XmlFile file) {
|
||||
return file.getFileType() == XmlFileType.INSTANCE;
|
||||
if (file.getFileType() != XmlFileType.INSTANCE) {
|
||||
return false;
|
||||
}
|
||||
NoNamespaceConfig config = NoNamespaceConfig.getInstance(file.getProject());
|
||||
return config != null && config.getMappedFile(file) != null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user