-
Notifications
You must be signed in to change notification settings - Fork 5.8k
JDK-8265441: IGV: select block nodes by clicking on it #10854
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
👋 Welcome back tholenstein! A progress list of the required criteria for merging this PR into |
@tobiasholenstein The following label will be automatically applied to this pull request:
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great functionality, thanks!
@tobiasholenstein This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 31 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. ➡️ To integrate this PR with the above commit message to the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should un-select by double clicking on a block that has selected nodes also work?
Hi @TobiHartmann I decided to leave this out for the following reason:
My suggestion is to leave this out for the moment. If desired it can still be introduced in the future. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, makes sense to me. Thanks for the explanation.
Thank you @TobiHartmann and @robcasloz for the reviews! /integrate |
Going to push as commit 3135914.
Your commit was automatically rebased without conflicts. |
@tobiasholenstein Pushed as commit 3135914. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
In "Cluster nodes into blocks" mode, it is now possible to select all nodes in a block by simply double-clicking in the block. The attached images illustrate the new behavior, after double-clicking on block B10. Similarly, the current node selection can be extended with all nodes of a block when holding the Ctrl/Cmd-key and double-clicking on a block.
Overview selection
new selection modes in bold. We refer to B4/B10 as blocks, and 86, 87, 88, ... as nodes
no key pressed
click on single node
: select single node, unselect all other nodesclick on edge
: select src/dest nodes, unselect all other nodesdouble-click on block
: select all nodes in block, unselect all other nodesdouble-click outside of node/block
: unselect all nodesholding down Ctrl/Cmd
click on single node
: add node to current selectionclick on edge
: invert the selection of src/dest nodesdouble-click on block
: add all nodes in block to current selectiondraw selection rectangle
: invert the selection of all nodes in rectangleImplementation
The main functionality was implemented by extending
BlockWidget
withDoubleClickHandler
and adding methodshandleDoubleClick
/addToSelection
. We also needed to replacesetSelectedNodes
withclearSelectedNodes
andaddSelectedNodes
inInputGraphProvider
and the corresponding methods inEditorTopComponent
. All code that usedsetSelectedNodes
needed to be adjusted accordingly.In order for the
DoubleClickHandler
inBlockWidget
to work, we needed to extendselectAction
inDiagramScene
to invert the selection of the nodes in the rectangle (thesymmetricDiff
set).Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk pull/10854/head:pull/10854
$ git checkout pull/10854
Update a local copy of the PR:
$ git checkout pull/10854
$ git pull https://git.openjdk.org/jdk pull/10854/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 10854
View PR using the GUI difftool:
$ git pr show -t 10854
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/10854.diff