How to get in the language plugin all PsiFiles or certain file by name from the project?
Please see http://confluence.jetbrains.net/display/IDEADEV/IntelliJIDEAArchitectural+Overview for more information. Note that in most cases you don't ever need to get all PsiFiles (that would be unusably slow in a real-life-sized project in any language).
-- Dmitry Jemerov Development Lead JetBrains, Inc. http://www.jetbrains.com/ "Develop with Pleasure!"
As I wrote above, this code will be unusably slow in any real-life project. A better solution is to find an approach to solving your issue that does not require getting all PSI files in a project.
Hello Oleg,
Please see http://confluence.jetbrains.net/display/IDEADEV/IntelliJIDEAArchitectural+Overview
for more information. Note that in most cases you don't ever need to get
all PsiFiles (that would be unusably slow in a real-life-sized project in
any language).
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
The only solution I found is the next:
Unfortunately, deprecated Project#getBaseDir() method is used here...
Will appreciate for any better solution. (Dmitry Jemerov ?)
As I wrote above, this code will be unusably slow in any real-life project. A better solution is to find an approach to solving your issue that does not require getting all PSI files in a project.