Generic tree to accept any node
Set application to be able to open directories and supported files