This is an automated email from the ASF dual-hosted git repository. neilcsmith pushed a commit to branch delivery in repository https://gitbox.apache.org/repos/asf/netbeans.git
The following commit(s) were added to refs/heads/delivery by this push: new 2fab5b2 [NETBEANS-5272] Fixed grouping of documents in document switcher new a6a2f8f Merge pull request #2701 from KacerCZ/netbeans-5272-fix-document-grouping 2fab5b2 is described below commit 2fab5b2def1defdd49611a57bdf421a120baf28a Author: Tomas Prochazka <ka...@razdva.cz> AuthorDate: Thu Jan 21 22:49:36 2021 +0100 [NETBEANS-5272] Fixed grouping of documents in document switcher https://issues.apache.org/jira/browse/NETBEANS-5272 Fixes issue when files from different projects with same name are not grouped correctly. Adds sorting by project path to ensure files from same project are together. --- .../src/org/netbeans/core/multitabs/impl/DocumentSwitcherTable.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/platform/core.multitabs/src/org/netbeans/core/multitabs/impl/DocumentSwitcherTable.java b/platform/core.multitabs/src/org/netbeans/core/multitabs/impl/DocumentSwitcherTable.java index 7a0530b..d853f14 100644 --- a/platform/core.multitabs/src/org/netbeans/core/multitabs/impl/DocumentSwitcherTable.java +++ b/platform/core.multitabs/src/org/netbeans/core/multitabs/impl/DocumentSwitcherTable.java @@ -237,6 +237,11 @@ class DocumentSwitcherTable extends SwitcherTable { int res = project.getDisplayName().compareTo( otherProject.getDisplayName() ); if( res != 0 ) return res; + + res = project.getPath().compareTo(otherProject.getPath()); + if (res != 0) { + return res; + } } } return super.compareTo( o ); --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists