Fix order regression from pr
@@ -46,9 +46,11 @@ public class WorkspaceNavigator extends BorderPane {
private List<JavaResource> resources() {
Workspace workspace= controller.getWorkspace();
- if (workspace == null) return Collections.emptyList();
- List<JavaResource> list = new ArrayList<>(workspace.getLibraries());
- list.add(workspace.getPrimary());
+ if (workspace == null)
+ return Collections.emptyList();
+ List<JavaResource> list = new ArrayList<>();
+ list.add(controller.getWorkspace().getPrimary());
+ list.addAll(controller.getWorkspace().getLibraries());
return list;
}
