-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
JDK-8292669: IGV: Search not useable when in Overflow Toolbar #9940
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. |
c0c269f
to
e9dd922
Compare
add LEFT_ALIGNMENT and RIGHT_ALIGNMENT remove setDisplayOverflowOnHover(false) Linux fix remove not needed setAlignmentX
e9dd922
to
6cd754a
Compare
/contributor add @chhagedorn |
@tobiasholenstein |
Webrevs
|
/contributor add @tobiasholenstein |
@tobiasholenstein |
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.
Looks good, thanks for fixing this! Now I can better use IGV side by side with the code in the IDE.
I've tested it successfully on Linux.
...ils/IdealGraphVisualizer/View/src/main/java/com/sun/hotspot/igv/view/EditorTopComponent.java
Outdated
Show resolved
Hide resolved
@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 172 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 |
517db20
to
78864bc
Compare
@tobiasholenstein Please do not rebase or force-push to an active PR as it invalidates existing review comments. All changes will be squashed into a single commit automatically when integrating. See OpenJDK Developers’ Guide for more information. |
Updated PR to add the Search when opening a new Tab without first clicking on it |
…pot/igv/view/EditorTopComponent.java Co-authored-by: Christian Hagedorn <christian.hagedorn@oracle.com>
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.
The changeset works fine on Windows as well. I just have a style comment: in my opinion, the import ordering should be left as-is (alphabetic order) for consistency with the rest of the IGV project.
Thanks for testing on Windows Roberto! You are right imports should stay in alphabetic order. I had to configure my IDE to not separate the java.* and javax.* imports. I changed it now |
Thanks @chhagedorn and @robcasloz for the reviews! /integrate |
Going to push as commit 2b80349.
Your commit was automatically rebased without conflicts. |
@tobiasholenstein Pushed as commit 2b80349. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Overview
The toolbar of the
EditorTopComponent
uses an overflow toolbar when it does not fit in the width of the TopComponent. When the window was not wide enough theQuickSearch
used to land in the overflow toolbar. Unfortunately,QuickSearch
stops working in the overflow toolbar.Now the
QuickSearch
never lands in the overflow toolbar anymore as shown bellow:Since the Netbeans Platform only allows for one occurrence of
QuickSearch
, it is only shown in theEditorTopComponent
that was selected last.Implementation
We introduce a new
JPanel
namedtopPanel
as a parent container.topPanel
contains anotherJPanel
toolbarPanel
and aToolbar
quickSearchToolbar
:toolbarPanel
uses theGridLayout
which gives the originalToolbar
toolBar
the maximal available width while still allowing it to overflow.On the right we have
quickSearchToolbar
, aToolbar
with a single elementquickSearchPresenter
. We givequickSearchPresenter
a minimum size and use theBoxLayout
inquickSearchToolbar
that respects the minimum size of its children. Therefore thequickSearchToolbar
never overflows.Progress
Issue
Reviewers
Contributors
<chagedorn@openjdk.org>
<tholenstein@openjdk.org>
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk pull/9940/head:pull/9940
$ git checkout pull/9940
Update a local copy of the PR:
$ git checkout pull/9940
$ git pull https://git.openjdk.org/jdk pull/9940/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 9940
View PR using the GUI difftool:
$ git pr show -t 9940
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/9940.diff