7441: JVM System information tables do not scroll horizontally #505
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 PR addresses JMC-7441 [0], in which the tables on the System tab in the JVM Browser don't scroll horizontally (very well).
While looking into this I noticed it affects many more tables, potentially most notable would be the automated analysis report ui, but that should be taken care of in a separate ticket.
The problem is that the column sizes aren't being set appropriately to the contents of the table. This affects the tables initialized with
SWT.VIRTUAL
, because these are lazy loaded and are not always fully filled out when it's time for the table to paint. I was playing around with an idea of adding a listener on theSWT.Paint
event and having the columns re-sized in an attempt to keep these as virtual tables, but the initial re-paint was jarring visually. Also it might not make sense for (some of) these tables to be virtual; they don't contain a large amount of information and/or aren't mutable.For the sake of the JVM Browser System tab tables, I just made these tables non-virtual and added a column packing function to the ColumnManager. The result is now the entire contents can be viewed in the table.
[0] https://bugs.openjdk.org/browse/JMC-7441
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jmc.git pull/505/head:pull/505
$ git checkout pull/505
Update a local copy of the PR:
$ git checkout pull/505
$ git pull https://git.openjdk.org/jmc.git pull/505/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 505
View PR using the GUI difftool:
$ git pr show -t 505
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jmc/pull/505.diff
Webrev
Link to Webrev Comment