Community
Participate
Working Groups
New editor opened from existing one (RMB click on editor tab) should be positioned at the same point as the parent editor. Now it's necessary to remember the line being edited and first thing to do after opening new editor is Ctrl+L and jump to the same line.
Is this something that the text editor could check for when it gets the IDocument for an IEditorInput? Is there some workbench support that is needed? PW
hm, IMO this makes sense for all kinds of editors, not just text - couldn't UI ask the parent editor for its selection and set it on the newly opened one? ISelection sel= parent.getSelectionProvider().getSelection(); newEditor.getSelectionProvider().setSelection(sel); I cannot find it, but wasn't there a discussion once about being able to open an editor with an initial selection? Keeping the bug here until we decide where it belongs.
>hm, IMO this makes sense for all kinds of editors, not just text Agree. The 'New Editor' action should decided whether to restore the selection and if so, do it for all editors not just text. >I cannot find it, but wasn't there a discussion once about being able to open >an editor with an initial selection? The discussion was related to restoring the selection when restarting the workbench (see bug 124615 and its blocking bug).
Is this still a problem in 3.3? PW
It is, at least in 3.3M2.
This was fixed as part of bug 124615 PW