selectFile

fun selectFile(file: File)

Expands tree items, so that file is visible in the tree, and then selects it.

If file is not a descendant of the root node, nothing happens. No items are expanded, and the selected item isn't changed.

Consider adding a "select opened file" button in titleButtons, (using Tantalum.scaledIcons "sync_once" ) which calls this with the currently opened file in your application.