void () { // first, check with 'sort by type' disabled myProjectView.setSortByType(myPane.getId(), false); ((ProjectViewImpl)myProjectView).setFoldersAlwaysOnTop(true); assertTree(""" -foldersOnTop +b.java +b.txt a.java a.txt c.java c.txt """); ((ProjectViewImpl)myProjectView).setFoldersAlwaysOnTop(false); assertTree(""" -foldersOnTop a.java a.txt +b.java +b.txt c.java c.txt """); // now let's check the behavior, when sortByType is enabled myProjectView.setSortByType(myPane.getId(), true); ((ProjectViewImpl)myProjectView).setFoldersAlwaysOnTop(true); assertTree(""" -foldersOnTop +b.java +b.txt a.java c.java a.txt c.txt """); ((ProjectViewImpl)myProjectView).setFoldersAlwaysOnTop(false); assertTree(""" -foldersOnTop a.java +b.java c.java a.txt +b.txt c.txt """); }