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); }