Version My Doggy 1.4.2 official release.
When clicking the x in the content window tab and multiple content windows are opened. The expected behavior would be that after a remove content window event, the last content window that the user clicked would be selected. However the window that is selected seems to always be the first content window of the aggregate that was added.
Steps to reproduce:
1)use the addContent method of the content manager to add JPanel and use a MultiSplitConstraint with an AggregatePosition.TOP
2) Add another content window that aggregate to the previous window with a multisplitconstraint
3) Add another content window that aggregates to the BOTTOM
4) Add another content window that aggregates to the BOTTOM
5) At this point you should have 4 content window 2 tabs aggregated at the top and 2 tabs aggregated at the bottom.
6) Select the second TOP aggregate window
7) Then select one of the BOTTOM aggregate window. Not just the tab but select a component in the JPanel so the panel in the BOTTOM window has focus.
8) Click the x in the tab of one of the BOTTOM aggregate windows.
9)This is where the problem occurs. The second TOP window is showing and you would expect it to keep showing since it was selected prior to the BOTTOM selection. However it looses focus and the first TOP window switches to show and is now selected. This creates a behavior where the windows are constantly swapping everytime you close a BOTTOM aggregate window.
I put a print statement in the propertychange listener with toolWindowManager.getContentManager().getNextContent() which always returns the first added TOP aggregate window.
My best guess is the getNextContent method seems to always return the first added window to an Aggregate instead of the last selected content window in the current aggregate that the content window was closed from.
Hi,
I have resolved the problem in the 1.5.0 under the trunk folder. Please verify you too.
Thanks for the feedback.
--angelo