PropertiesFileStructureViewComponent#getData should provide psi file instead of PropertiesFile object

This commit is contained in:
Dmitry Batkovich
2018-11-23 12:31:40 +03:00
parent e8407fefc2
commit d988932296
@@ -41,7 +41,7 @@ public class PropertiesFileStructureViewComponent extends PropertiesGroupingStru
return myPropertiesFile.getVirtualFile();
}
if (CommonDataKeys.PSI_ELEMENT.is(dataId)) {
return myPropertiesFile;
return myPropertiesFile.getContainingFile();
}
return super.getData(dataId);
}