RFR: JDK-8297007: IGV: Link/Unlink node selection of open tabs [v2]
Christian Hagedorn
chagedorn at openjdk.org
Thu Nov 17 13:56:12 UTC 2022
On Thu, 17 Nov 2022 13:11:11 GMT, Tobias Holenstein <tholenstein at openjdk.org> wrote:
>> In IGV graphs can be opened in several tabs and then display them side-by-side. Previously, when the user selected nodes in tab A the selection was also applied in tab B.
>>
>> We now introduce a new global button to link and unlink the selection of different tabs.
>> 
>>
>> If the button is **pressed**, the selection is **linked** globally across tabs:
>> 
>>
>> If the button is **not pressed**, the selection is **not linked** across tabs. This is the default setting:
>> 
>>
>> # Implementation
>> The `SelectionCoordinator` is responsible to update the other tabs when the selection changes. We simply disable the `SelectionCoordinator` when the link button is not pressed, and enable it otherwise.
>
> Tobias Holenstein has updated the pull request incrementally with three additional commits since the last revision:
>
> - add Shortcuts to GlobalSelectionAction
> - correct class in all CallableSystemAction
> - copyright year
Looks good! Works as expected on Linux.
src/utils/IdealGraphVisualizer/View/src/main/java/com/sun/hotspot/igv/view/DiagramViewModel.java line 68:
> 66: private boolean showEmptyBlocks;
> 67: private boolean hideDuplicates;
> 68: private static boolean globalSelection = false;
Suggestion:
private static boolean globalSelection = false;
-------------
Marked as reviewed by chagedorn (Reviewer).
PR: https://git.openjdk.org/jdk/pull/11171
More information about the hotspot-compiler-dev
mailing list