Thanks for the answer Dmitry. I saw that the model only accepts chains of type <PsiDirectory>...<PsiDirectory><PsiFile> (just by looking at the recursion logic in NavBarModel.traverseToRoot()). Any chance this may change in the future towards accepting any PsiElement?
For navigation within the file, we have a separate component - the breadcrumbs bar (currently available in XML, HTML and I think somewhere else too). Maybe it would be a more appropriate component for your purposes?
Thanks for the answer Dmitry.
I saw that the model only accepts chains of type <PsiDirectory>...<PsiDirectory><PsiFile> (just by looking at the recursion logic in NavBarModel.traverseToRoot()).
Any chance this may change in the future towards accepting any PsiElement?
-- Dmitry Jemerov Development Lead JetBrains, Inc. http://www.jetbrains.com/ "Develop with Pleasure!"
Thanks for the tip. Certainly useful for navigating within a file. Still, my use case is trying to emulate database path (like CONNECTION > DATABASE > SCHEMA > FUNCTION), where every other element but FUNCTION is supposed to be a PsiDirectory. But i found a workaround for this. Thanks again.
Hello Dan,
It's PSI centric.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Thanks for the answer Dmitry.
I saw that the model only accepts chains of type <PsiDirectory>...<PsiDirectory><PsiFile> (just by looking at the recursion logic in NavBarModel.traverseToRoot()).
Any chance this may change in the future towards accepting any PsiElement?
Hello Dan,
For navigation within the file, we have a separate component - the breadcrumbs
bar (currently available in XML, HTML and I think somewhere else too). Maybe
it would be a more appropriate component for your purposes?
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Thanks for the tip. Certainly useful for navigating within a file.
Still, my use case is trying to emulate database path (like CONNECTION > DATABASE > SCHEMA > FUNCTION), where every other element but FUNCTION is supposed to be a PsiDirectory. But i found a workaround for this. Thanks again.