Generate adapter file and open it.