Question to "navigation bar"

Is the navigation bar on the the top of the editors PSI centric, or can it be extended to display navigation paths for editors with no PSI structure?

4 comments

Hello Dan,

It's PSI centric.

Is the navigation bar on the the top of the editors PSI centric, or
can it be extended to display navigation paths for editors with no PSI
structure?


--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

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?

0

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?

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!"


0

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.

0

Please sign in to leave a comment.