create new file with assigned url?
Posted: Thu Jun 08, 2017 5:02 pm
My requirement for a specific AuthorOperation is that i want to ensure that a specific file is opened in oXygen editor. (I will access it through the URIResolver.)
Currently, when the file is not existing I create the content, write it to disk and then open it.
Even better would be if I could create a new document with a specific URL assigned to it. This way there is no side-effect until the user saves the file.
I found a method to create a new file (Workspace.createNewEditor()) but I could not find a way to set a specific URL without explicitly saving it to disk!?
Thanks and regards,
Patrik
Currently, when the file is not existing I create the content, write it to disk and then open it.
Even better would be if I could create a new document with a specific URL assigned to it. This way there is no side-effect until the user saves the file.
I found a method to create a new file (Workspace.createNewEditor()) but I could not find a way to set a specific URL without explicitly saving it to disk!?
Thanks and regards,
Patrik