No wait cursor on CSL navigator expand #8274
Open
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.
Well, I find it a bit annoying, that almost every time I edit a Yaml, HCL file, there is a flickering on the mouse cursor changing to wait cursor and then back.
It turned out that is because the navigator is expanding it's tree to the current location, so when the structure changes it issues an expand and the
TreeView.autoWaitCursor
istrue
by default and put the cursor in wait mode for a brief moment.That led me to try other parts of the IDE, and expanding nodes could result with a brief mouse cursor change. That made me think to change the
TreeView
behavior. It would be good to have the default for the wait cursor to befalse
, though since it is down in the core I think it's being used many places outside of NetBeans.Probably the best would be delaying the wait cursor change by 500ms or so, and if the tree could expand it in that time we just do not do that. Might try to create a PR for that one, however for the default CSL provided navigator, I do not thing that we need the
autoWaitCursor
functionality at all.