From d9889322966b72c0bf9c26585095babf646aabd8 Mon Sep 17 00:00:00 2001 From: Dmitry Batkovich Date: Fri, 23 Nov 2018 12:31:19 +0300 Subject: [PATCH] PropertiesFileStructureViewComponent#getData should provide psi file instead of PropertiesFile object --- .../structureView/PropertiesFileStructureViewComponent.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/properties/src/com/intellij/lang/properties/structureView/PropertiesFileStructureViewComponent.java b/plugins/properties/src/com/intellij/lang/properties/structureView/PropertiesFileStructureViewComponent.java index 045b62b15f51..eb64ed82d94c 100644 --- a/plugins/properties/src/com/intellij/lang/properties/structureView/PropertiesFileStructureViewComponent.java +++ b/plugins/properties/src/com/intellij/lang/properties/structureView/PropertiesFileStructureViewComponent.java @@ -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); }