How to detect facet on a directory?

I need to detect the root directory of my facet data.
Is there a way to register detectors on directories?

Thanks

0
3 comments
Avatar
Permanently deleted user

No, facet detection works only for files.

I need to detect the root directory of my facet data.
Is there a way to register detectors on directories?

Thanks

---
Original message URL: http://www.jetbrains.net/devnet/message/5250706#5250706



--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0
Avatar
Permanently deleted user

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.

0
Avatar
Permanently deleted user

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.

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.

---
Original message URL: http://www.jetbrains.net/devnet/message/5250776#5250776



--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0

Please sign in to leave a comment.