J'ai besoin d'ouvrir un editeur de texte dans mon plugin :
Je sais le faire sur un fichier existant :


IFile file = workspaceRoot.getFileForLocation(path);
IEditorInput editorInput = new FileEditorInput(file);
IEditorDescriptor desc = workbench.getEditorRegistry().getDefaultEditor("xxx.xml");

try {
workbenchPage.openEditor(editorInput, desc.getId());
} catch (PartInitException e) {
;
}


Je voudrais pouvoir faire la même chose sans fichier preexistant (pour que l'utilisateur puisse faire un "save as")
Il me faudait qchose qui ressemble à

workbenchPage.openEditor(null, desc.getId());

Je n'ai rien trouvé pour le moment :
une idée ????