void () { MyOrderProvider provider = new MyOrderProvider(myProject); provider.setOrder("b_ordered.java", "a_folder_ordered", "b_ordered.txt", "a_ordered.txt", "b_folder_ordered", "a_ordered.java"); getProjectTreeStructure().setProviders(provider); myProjectView.setManualOrder(myPane.getId(), true); ((ProjectViewImpl)myProjectView).setFoldersAlwaysOnTop(true); myProjectView.setSortByType(myPane.getId(), false); assertTree(""" -manualOrder b_ordered.java +a_folder_ordered b_ordered.txt a_ordered.txt +b_folder_ordered a_ordered.java +a_folder_unordered +b_folder_unordered a_unordered.java a_unordered.txt b_unordered.java b_unordered.txt """); myProjectView.setSortByType(myPane.getId(), true); assertTree(""" -manualOrder b_ordered.java +a_folder_ordered b_ordered.txt a_ordered.txt +b_folder_ordered a_ordered.java +a_folder_unordered +b_folder_unordered a_unordered.java b_unordered.java a_unordered.txt b_unordered.txt """); ((ProjectViewImpl)myProjectView).setFoldersAlwaysOnTop(false); myProjectView.setSortByType(myPane.getId(), false); assertTree(""" -manualOrder b_ordered.java +a_folder_ordered b_ordered.txt a_ordered.txt +b_folder_ordered a_ordered.java +a_folder_unordered a_unordered.java a_unordered.txt +b_folder_unordered b_unordered.java b_unordered.txt """); myProjectView.setSortByType(myPane.getId(), true); assertTree(""" -manualOrder b_ordered.java +a_folder_ordered b_ordered.txt a_ordered.txt +b_folder_ordered a_ordered.java a_unordered.java b_unordered.java a_unordered.txt b_unordered.txt +a_folder_unordered +b_folder_unordered """); }