mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PropertiesFileStructureViewComponent#getData should provide psi file instead of PropertiesFile object
This commit is contained in:
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user