Community
Participate
Working Groups
build N20031117 The IDE class now has openEditor(IWorkbenchPage, IFile, boolean) and the equivalent method that takes an IMarker. However, pre-RCP, all the openEditor methods on IWorkbenchPage had special handling for IFileEditorInputs. Also, callers of the old openEditor(IFile) method should not be forced to add an extra argument for activation. IDE should have direct equivalents for the old methods so that any call of the form: page.openEditor([args]) can now do: IDE.openEditor(page, [args]) and get the same behaviour as before. See bug 46395 for more context.
*** Bug 52658 has been marked as a duplicate of this bug. ***
The compatibility fragment should also be updated to call these directly rather than doing any mapping itself.
This is not on the list for M8. Deferring....
The API for IDE and what each method calls is now: openEditor(IWorkbenchPage page, IEditorInput input, String editorId) -> page.openEditor(input, editorId); openEditor(IWorkbenchPage page, IEditorInput input, String editorId, boolean activate) -> page.openEditor(input, editorId, activate); openEditor(IWorkbenchPage page, IFile input) -> page.openEditor(new FileEditorInput(input), getEditorDescriptor(input).getId()); openEditor(IWorkbenchPage page, IFile input, String editorId) -> page.openEditor(new FileEditorInput(input), editorId); openEditor(IWorkbenchPage page, IFile input, String editorId, boolean activate) -> page.openEditor(new FileEditorInput(input), editorId, activate); openEditor(IWorkbenchPage page, IMarker marker) -> this.openEditor(page, marker, true); I didn't change the two existing methods: openEditor(IWorkbenchPage page, IFile input, boolean activate) openEditor(IWorkbenchPage page, IMarker marker, boolean activate) The test cases have been updated. This bug is still open because the 3.0 functions don't remember default editor changes in the same way as the 2.1 couterparts.
Also, the compatibility bundle still needs to be updated.
The API work has been done. Still some implementation aspects to address as noted above.
The API is done, the behaviour for default selection needs to be fixed for 3.0.
For R3.0, we can live without the old behaviour of remembering the last editor used to open the file when using the openEditor(IEditorInput, ...) APIs. That is, we shouldn't jump through hoops to get the compatibility fragment to work in ths case. Could still have the IDE.openEditor equivalent provide the old behaviour.
We're missing an equivalent for the old IWorkbenchPage.openSystemEditor(IFile) method (discovered by Jeem in bug 67950 comment #5).
*** Bug 58745 has been marked as a duplicate of this bug. ***
Not for 3.1
Reassigning bugs in component areas that are changing ownership.
Closing stale bug.