Add command finder to header bar - #2191
Open
petebankhead wants to merge 7 commits into
Open
Conversation
First implementation of HeaderBar (introduced Java 27) as an alternative way to access the CommandFinder.
Contributor
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.





This makes use of the
HeaderBarpreview feature of JavaFX, in anticipation of it being a full feature in JavaFX 27.It adds a version of View → Show command list to the header bar, making it more discoverable.
The search box can be focused by pressing
Ctrl/Cmd+Fand, in combination withUp/Down/Entermakes many QuPath commands easily runnable from the keyboard.Also, while it provides a searchable way to access all menu commands, the search box also can be used to access previously-run commands. To do this, type
UporDownwithout any search text entered. It maintains aSetof past commands, to keep the list short (i.e. duplicates are removed, while ensuring that the commands run most recently are at the top of the list).While
HeaderBaris in preview, using this requiresbut I'm hoping JavaFX 27 will make that simpler.
Notes