IntelliJ IDEA Open API and Plugin Development Is Deprecated. Join our JetBrains Platform Community.
How to detect facet on a directory?
2 人关注
I need to detect the root directory of my facet data.
Is there a way to register detectors on directories?
Thanks
请先登录再写评论。
No, facet detection works only for files.
--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
Any intention on changing that? It seems rather restrictive but maybe I am not understanding what is supposed to be detected.
Is it architecturaly feasible i.e. not a large refactoring ?
I guess for what I am doing (fitnesse.org integration) I am fine with the detection by itself. My real issue right now is that the one file that causes the detection is the one displayed in the user dialog. Is there a way to customize the path displayed in the facet detection dialog? I really need the root directory to be displayed not one of the file inside.
The only attribute of a directory is its name. So if you don't want to detect your facet for every directory with the specified name you need to
inspect files of a directory so a facet is actually detected in a file.
You can customize presentation of a detected facet by using FacetDetectorRegistry#customizeDetectedFacetPresentation method.
--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"