-
Notifications
You must be signed in to change notification settings - Fork 168
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
4262: Duplicate headers when copying thread dump text to clipboard #529
Conversation
👋 Welcome back aptmac! A progress list of the required criteria for merging this PR into |
@aptmac 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 3 new commits pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the ➡️ To integrate this PR with the above commit message to the |
/integrate |
Going to push as commit 8dd7683.
Your commit was automatically rebased without conflicts. |
This PR addresses JMC-4262 [0], in which copying thread dump nodes in the tree view exhibits some unexpected behaviour.
The above issue describes that if you select two nodes from the tree and use the copy context menu action, then the thread dump header gets duplicated. However, what I'm seeing is that the parent thread dump information is also added to the clipboard along side the actual selected information I'm looking for. Further more, if I'm selecting parent nodes from the treeview, I get both the entire thread dump plus the thread dump body (duplicated) for each selected node.
For example, if I'm trying to copy 2 parent nodes, I end up with 4 thread dump bodies. Or if I'm just trying to copy the entries from GC Threads 0 through 4, I end up with my selection, plus 4 copies of the thread dump.
This PR adjusts the copy action to use the same functionality used for displaying the selection in the sashform. This way, the selections the user makes in the treeview is what is actually copied into the clipboard.
Before:
After:
[0] https://bugs.openjdk.org/browse/JMC-4262
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jmc.git pull/529/head:pull/529
$ git checkout pull/529
Update a local copy of the PR:
$ git checkout pull/529
$ git pull https://git.openjdk.org/jmc.git pull/529/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 529
View PR using the GUI difftool:
$ git pr show -t 529
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jmc/pull/529.diff
Webrev
Link to Webrev Comment