Re: RFR: 8273349: Check uses of Stream::peek in controls and replace as needed [v3]

2024-03-28 Thread Andy Goryachev
On Thu, 28 Mar 2024 08:49:44 GMT, drmarmac wrote: >> This PR removes potentially incorrect usages of Stream.peek(). >> The changed code should be covered by the tests that are already present. > > drmarmac has updated the pull request incrementally with two additional > commits since the last

Re: RFR: 8273349: Check uses of Stream::peek in controls and replace as needed [v3]

2024-03-28 Thread Nir Lisker
On Thu, 28 Mar 2024 22:21:32 GMT, drmarmac wrote: >> modules/javafx.controls/src/main/java/javafx/scene/control/ControlUtils.java >> line 166: >> >>> 164: sm.startAtomic(); >>> 165: >>> 166: final List removed = new >>> ArrayList<>(c.getRemovedSize()); >> >> I wonder

Re: RFR: 8273349: Check uses of Stream::peek in controls and replace as needed [v3]

2024-03-28 Thread drmarmac
On Thu, 28 Mar 2024 17:53:14 GMT, Andy Goryachev wrote: >> drmarmac has updated the pull request incrementally with two additional >> commits since the last revision: >> >> - Preallocate in SelectedIndicesList.set() >> - Remove unused import > >

Re: RFR: 8092102: Labeled: truncated property [v8]

2024-03-28 Thread Andy Goryachev
On Thu, 28 Mar 2024 21:44:49 GMT, Andy Goryachev wrote: >> Adds **Labeled.textTruncated** property which indicates when the text is >> visually truncated (and the ellipsis string is inserted) in order to fit the >> available width. >> >> The new property reacts to changes in the following

Re: RFR: 8092102: Labeled: truncated property [v8]

2024-03-28 Thread Andy Goryachev
> Adds **Labeled.textTruncated** property which indicates when the text is > visually truncated (and the ellipsis string is inserted) in order to fit the > available width. > > The new property reacts to changes in the following properties: > - ellipsisString > - font > - height > - text > -

Integrated: 8316372: Monkey Tester Application Part 3

2024-03-28 Thread Andy Goryachev
On Mon, 18 Mar 2024 21:02:54 GMT, Andy Goryachev wrote: > Further changes to the MonkeyTester application: > > - remember split pane divider ✔ > - use 'private' instead of 'protected' in many cases ✔ > - added more scripts to the 'writing systems' text sample ✔ > - added RTL window control menu

Re: RFR: 8323511 Scrollbar Click jumps inconsistent amount of pixels [v2]

2024-03-28 Thread Johan Vos
On Mon, 15 Jan 2024 08:31:59 GMT, Florian Kirmaier wrote: >> As seen in the unit test of the PR, when we click on the area above/below >> the scrollbar the position jumps - but the jump is now not always consistent. >> In the current version on the last cell - the UI always jumps to the top.

Re: RFR: 8316372: Monkey Tester Application Part 3 [v7]

2024-03-28 Thread Kevin Rushforth
On Mon, 25 Mar 2024 22:36:48 GMT, Andy Goryachev wrote: >> Further changes to the MonkeyTester application: >> >> - remember split pane divider ✔ >> - use 'private' instead of 'protected' in many cases ✔ >> - added more scripts to the 'writing systems' text sample ✔ >> - added RTL window

Re: RFR: 8328577: Toolbar's overflow button overlaps the items [v2]

2024-03-28 Thread eduardsdv
On Thu, 28 Mar 2024 18:53:00 GMT, eduardsdv wrote: >> This change fixes the calculation of which nodes go to the toolbar and which >> go to the overflow menu. >> It is now determined before the nodes are removed from the scene graph. >> This is important because the values returned by >>

Re: RFR: 8092102: Labeled: truncated property [v7]

2024-03-28 Thread Andy Goryachev
> Adds **Labeled.textTruncated** property which indicates when the text is > visually truncated (and the ellipsis string is inserted) in order to fit the > available width. > > The new property reacts to changes in the following properties: > - ellipsisString > - font > - height > - text > -

Re: RFR: 8328577: Toolbar's overflow button overlaps the items [v2]

2024-03-28 Thread eduardsdv
> This change fixes the calculation of which nodes go to the toolbar and which > go to the overflow menu. > It is now determined before the nodes are removed from the scene graph. > This is important because the values returned by > ``Node.prefWidth(..)``/``Node.prefHeight(..)`` may depend on

Re: RFR: 8273349: Check uses of Stream::peek in controls and replace as needed [v3]

2024-03-28 Thread Andy Goryachev
On Thu, 28 Mar 2024 08:49:44 GMT, drmarmac wrote: >> This PR removes potentially incorrect usages of Stream.peek(). >> The changed code should be covered by the tests that are already present. > > drmarmac has updated the pull request incrementally with two additional > commits since the last

Re: RFR: 8273349: Check uses of Stream::peek in controls and replace as needed [v3]

2024-03-28 Thread Kevin Rushforth
On Thu, 28 Mar 2024 15:48:50 GMT, Andy Goryachev wrote: > a minor question: would it be much easier to understand if the code was > written in conventional procedural style? a straightforward `for` loop? Even if it were (and I'm not sure it would be), it would be a more intrusive change than

Re: RFR: 8273349: Check uses of Stream::peek in controls and replace as needed [v3]

2024-03-28 Thread Marius Hanl
On Thu, 28 Mar 2024 08:49:44 GMT, drmarmac wrote: >> This PR removes potentially incorrect usages of Stream.peek(). >> The changed code should be covered by the tests that are already present. > > drmarmac has updated the pull request incrementally with two additional > commits since the last

Integrated: 8328754: Fix missing @Overrides in test

2024-03-28 Thread Andy Goryachev
On Fri, 22 Mar 2024 15:55:35 GMT, Andy Goryachev wrote: > Fixing missing @ OVERRIDES in tests. > > This is still a trivial change since all the spots are identified by the IDE. This pull request has now been integrated. Changeset: 7a4d2976 Author:Andy Goryachev URL:

Re: RFR: 8328754: Fix missing @Overrides in test [v2]

2024-03-28 Thread Andy Goryachev
On Thu, 28 Mar 2024 16:27:44 GMT, Ajit Ghaisas wrote: >> Andy Goryachev has updated the pull request with a new target base due to a >> merge or a rebase. The incremental webrev excludes the unrelated changes >> brought in by the merge/rebase. The pull request contains three additional >>

Re: RFR: 8328754: Fix missing @Overrides in test [v2]

2024-03-28 Thread Karthik P K
On Thu, 28 Mar 2024 14:54:47 GMT, Andy Goryachev wrote: >> Fixing missing @ OVERRIDES in tests. >> >> This is still a trivial change since all the spots are identified by the IDE. > > Andy Goryachev has updated the pull request with a new target base due to a > merge or a rebase. The

Re: RFR: 8328754: Fix missing @Overrides in test [v2]

2024-03-28 Thread Ajit Ghaisas
On Thu, 28 Mar 2024 14:54:47 GMT, Andy Goryachev wrote: >> Fixing missing @ OVERRIDES in tests. >> >> This is still a trivial change since all the spots are identified by the IDE. > > Andy Goryachev has updated the pull request with a new target base due to a > merge or a rebase. The

Re: RFR: 8273349: Check uses of Stream::peek in controls and replace as needed [v3]

2024-03-28 Thread Andy Goryachev
On Thu, 28 Mar 2024 08:49:44 GMT, drmarmac wrote: >> This PR removes potentially incorrect usages of Stream.peek(). >> The changed code should be covered by the tests that are already present. > > drmarmac has updated the pull request incrementally with two additional > commits since the last

Re: RFR: 8273349: Check uses of Stream::peek in controls and replace as needed [v3]

2024-03-28 Thread Andy Goryachev
On Thu, 28 Mar 2024 08:49:44 GMT, drmarmac wrote: >> This PR removes potentially incorrect usages of Stream.peek(). >> The changed code should be covered by the tests that are already present. > > drmarmac has updated the pull request incrementally with two additional > commits since the last

Re: RFR: 8328577: Toolbar's overflow button overlaps the items

2024-03-28 Thread Andy Goryachev
On Thu, 28 Mar 2024 11:31:14 GMT, eduardsdv wrote: > This change fixes the calculation of which nodes go to the toolbar and which > go to the overflow menu. > It is now determined before the nodes are removed from the scene graph. > This is important because the values returned by >

Re: RFR: 8328754: Fix missing @Overrides in test [v2]

2024-03-28 Thread Andy Goryachev
On Thu, 28 Mar 2024 12:12:07 GMT, Karthik P K wrote: >> Andy Goryachev has updated the pull request with a new target base due to a >> merge or a rebase. The incremental webrev excludes the unrelated changes >> brought in by the merge/rebase. The pull request contains three additional >>

Re: RFR: 8328754: Fix missing @Overrides in test [v2]

2024-03-28 Thread Andy Goryachev
> Fixing missing @ OVERRIDES in tests. > > This is still a trivial change since all the spots are identified by the IDE. Andy Goryachev has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the

Integrated: 8328811: Fix missing @Overrides in demos

2024-03-28 Thread Andy Goryachev
On Fri, 22 Mar 2024 15:54:42 GMT, Andy Goryachev wrote: > Fixing missing @Overrides in demo apps. > > This is still a trivial change since all the spots are identified by the IDE. This pull request has now been integrated. Changeset: 9ca8e51e Author:Andy Goryachev URL:

Integrated: 8307980: Rotate Transformation never invalidates inverseCache

2024-03-28 Thread Lukasz Kostyra
On Wed, 6 Mar 2024 15:51:16 GMT, Lukasz Kostyra wrote: > Fixed as described in the issue + added tests to check for this scenario with > all Transform sub classes. Since the test scenario slightly exceeding the > regular parametrized testing of `TransformOperationsTest` I decided to >

Re: RFR: 8325591: [Mac] DRAG_DONE reports null transferMode when destination is external

2024-03-28 Thread Lukasz Kostyra
On Fri, 16 Feb 2024 22:35:49 GMT, Martin Fox wrote: > At the end of a drag operation the Mac Glass code sends out a DRAG_DONE event > using the operation mask tracked in the GlassDragSource to determine the > final transfer mode. That mask is only updated when a window in the JavaFX > app is

Re: RFR: 8273349: Check uses of Stream::peek in controls and replace as needed [v3]

2024-03-28 Thread Karthik P K
On Thu, 28 Mar 2024 08:49:44 GMT, drmarmac wrote: >> This PR removes potentially incorrect usages of Stream.peek(). >> The changed code should be covered by the tests that are already present. > > drmarmac has updated the pull request incrementally with two additional > commits since the last

Re: RFR: 8307980: Rotate Transformation never invalidates inverseCache [v3]

2024-03-28 Thread Kevin Rushforth
On Thu, 28 Mar 2024 11:23:02 GMT, Lukasz Kostyra wrote: >> Fixed as described in the issue + added tests to check for this scenario >> with all Transform sub classes. Since the test scenario slightly exceeding >> the regular parametrized testing of `TransformOperationsTest` I decided to >>

Re: RFR: 8328754: Fix missing @Overrides in test

2024-03-28 Thread Karthik P K
On Fri, 22 Mar 2024 15:55:35 GMT, Andy Goryachev wrote: > Fixing missing @ OVERRIDES in tests. > > This is still a trivial change since all the spots are identified by the IDE. Changes looks good. Found few file where `@Override` can be added for `start` method. 1. `BigGlyphIDTest.java` 2.

Re: RFR: 8328754: Fix missing @Overrides in test

2024-03-28 Thread Ajit Ghaisas
On Fri, 22 Mar 2024 15:55:35 GMT, Andy Goryachev wrote: > Fixing missing @ OVERRIDES in tests. > > This is still a trivial change since all the spots are identified by the IDE. Looks good. - Marked as reviewed by aghaisas (Reviewer). PR Review:

RFR: 8328577: Toolbar's overflow button overlaps the items

2024-03-28 Thread eduardsdv
This change fixes the calculation of which nodes go to the toolbar and which go to the overflow menu. It is now determined before the nodes are removed from the scene graph. This is important because the values returned by ``Node.prefWidth(..)``/``Node.prefHeight(..)`` may depend on whether the

Re: RFR: 8328811: Fix missing @Overrides in demos

2024-03-28 Thread Ajit Ghaisas
On Fri, 22 Mar 2024 15:54:42 GMT, Andy Goryachev wrote: > Fixing missing @Overrides in demo apps. > > This is still a trivial change since all the spots are identified by the IDE. Looks good. - Marked as reviewed by aghaisas (Reviewer). PR Review:

Re: RFR: 8307980: Rotate Transformation never invalidates inverseCache [v3]

2024-03-28 Thread Lukasz Kostyra
> Fixed as described in the issue + added tests to check for this scenario with > all Transform sub classes. Since the test scenario slightly exceeding the > regular parametrized testing of `TransformOperationsTest` I decided to > implement the tests in a separate class. > > I didn't manage to

Re: RFR: 8324939: Editable TableView loses focus after commit

2024-03-28 Thread Marius Hanl
On Wed, 20 Mar 2024 10:55:56 GMT, Jose Pereda wrote: > This PR fixes the issue that after committing an edit on a > ListView/TreeView/TableView/TreeTableView control, the control might lose the > focus unexpectedly. > > For that, it refactors the >

Re: RFR: 8328746: Remove unused imports in demo apps

2024-03-28 Thread Karthik P K
On Thu, 21 Mar 2024 21:50:37 GMT, Andy Goryachev wrote: > Using Eclipse IDE to remove unused imports in **demo apps** (3D, Ensemble, > etc.) and update the copyright year to 2024. Using wildcard for more than 10 > static imports. > > > -- > > This is a trivial change (though fairly large),

Re: RFR: 8273349: Check uses of Stream::peek in controls and replace as needed [v2]

2024-03-28 Thread drmarmac
On Thu, 28 Mar 2024 06:07:24 GMT, Karthik P K wrote: >> You don't need to return a list, you create it ahead of time like was done >> in line 167 >> >> List indices = new ArrayList<>(); >> >> and the add the elements in `forEach`. > >> Why do the double-iteration pattern here and not do the

Re: RFR: 8273349: Check uses of Stream::peek in controls and replace as needed [v3]

2024-03-28 Thread drmarmac
On Thu, 28 Mar 2024 08:49:44 GMT, drmarmac wrote: >> This PR removes potentially incorrect usages of Stream.peek(). >> The changed code should be covered by the tests that are already present. > > drmarmac has updated the pull request incrementally with two additional > commits since the last

Re: RFR: 8273349: Check uses of Stream::peek in controls and replace as needed [v3]

2024-03-28 Thread drmarmac
> This PR removes potentially incorrect usages of Stream.peek(). > The changed code should be covered by the tests that are already present. drmarmac has updated the pull request incrementally with two additional commits since the last revision: - Preallocate in SelectedIndicesList.set() -

Re: RFR: 8273349: Check uses of Stream::peek in controls and replace as needed [v2]

2024-03-28 Thread Karthik P K
On Wed, 27 Mar 2024 23:21:34 GMT, Nir Lisker wrote: >> `forEach` is void, so we can not return a list afterwards. > > You don't need to return a list, you create it ahead of time like was done in > line 167 > > List indices = new ArrayList<>(); > > and the add the elements in `forEach`. >

Re: RFR: 8273349: Check uses of Stream::peek in controls and replace as needed [v2]

2024-03-28 Thread Karthik P K
On Wed, 27 Mar 2024 23:24:51 GMT, Marius Hanl wrote: >>> In the java.util.stream package >>> [docs](https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/util/stream/package-summary.html#SideEffects) >>> it is mentioned that `forEach()` method operates only via side-effects. So