At the moment, Database.enableFolder(folderName) creates a new folder with a design based on the default view. AFAIK, the only way to (programmatically) create a folder based on some other view is to make that view the default view, create the folder and reset the default view to the original view. Clumsy, and error-prone.
Please allow a 2nd parameter to enableFolder, to contain the name of the view the folder's design should be copied from.
PS Why can't I select 3 idea categories: Java, LotusScript, Views?