mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
sorry, previous commit is bad.
This commit is contained in:
@@ -338,7 +338,7 @@ public final class DomManagerImpl extends DomManager {
|
||||
@Nullable
|
||||
public final <T extends DomElement> DomFileElementImpl<T> getFileElement(XmlFile file) {
|
||||
if (file == null) return null;
|
||||
if (file.getFileType() instanceof DomSupportEnabled) return null;
|
||||
if (!(file.getFileType() instanceof DomSupportEnabled)) return null;
|
||||
final VirtualFile virtualFile = file.getVirtualFile();
|
||||
if (virtualFile != null && virtualFile.isDirectory()) return null;
|
||||
return this.<T>getOrCreateCachedValueProvider(file).getFileElement();
|
||||
|
||||
Reference in New Issue
Block a user