Community
Participate
Working Groups
Build Identifier: 20100617-1415 Invoking run() method of the OpenBreakpointMarkerAction class takes the target editor id, but the doesn't use it. It just calls WorkbenchPage .openEditor(IEditorInput input, String editorId) method, which then calls openEditor(final IEditorInput input,final String editorID, final boolean activate, final int matchFlags) and uses MATCH_INPUT constant, therefore the editor id, which is specified, is no longer considered. This ends with opening the wrong editor for the breakpoint marker. Reproducible: Always Steps to Reproduce: Invoking run() method of the OpenBreakpointMarkerAction class takes the target editor id, but the doesn't use it. It just calls WorkbenchPage .openEditor(IEditorInput input, String editorId) method, which then calls openEditor(final IEditorInput input,final String editorID, final boolean activate, final int matchFlags) and uses MATCH_INPUT constant, therefore the editor id, which is specified, is no longer considered. This ends with opening the wrong editor for the breakpoint marker.
The API being used on IWorkbench page will re-use an existing editor if one is already open on the same editor input. We could call an alternate API that opens a new editor based on the editor input and editor ID.
Fixed in HEAD.
Reviewed.