Community
Participate
Working Groups
N20031111 Start fresh workspace and create a type in a new Java project. Close the Java editor Select the file, Open With > Text editor Close the text editor Double-click the file ==> opens in Java editor. Before RCP it used to remember which editor was used.
Fixed in >I20031111, by adding a call to IDE.setDefaultEditor(file, editorId) in OpenWithMenu.openEditor. This is not ideal though. The old code used to just call page.openEditor(file, editorId). The equivalent post-RCP call should be IDE.openEditor(page, file, editorId) but there is no such API currently. Should have 1-to-1 equivalents for the old openEditor methods on IDE, including the openEditor(IEditorInput, ...) variants to handle the special case for IFileEditorInput.
This is fixed. Filed bug 46818 for the openEditor API problems.