Community
Participate
Working Groups
When selecting text in a CEditor, if enabled, the occurrences of the selected text will be marked in the editor. This doesn't work if the CEditor is embedded in a MultiPageEditorPart. I will contribute a patch to fix this issue. As suggested by Jonah in bug 579758, comment 4 I will provide a simple example editor for manual testing.
Excellent, thanks Dominic, I look forward to reviewing/testing the patch.
New Gerrit change created: https://git.eclipse.org/r/c/cdt/org.eclipse.cdt/+/193272
What I wasn't able to fix is the toggle mark occurrences button in the toolbar. When opening a CEditor the button is visible, but not for the multi page editor. This is because the eclipse ui framework uses the EditorSite to get the id against which the action sets are matched. The workaround is to activate the "Editor Presentation" action set in the perspective.
(In reply to Dominic Scharfe from comment #3) > What I wasn't able to fix is the toggle mark occurrences button in the > toolbar. When opening a CEditor the button is visible, but not for the multi > page editor. I can see that too when I try your patch. > This is because the eclipse ui framework uses the EditorSite to get the id > against which the action sets are matched. The workaround is to activate the > "Editor Presentation" action set in the perspective. Even if I manually enable the Editor Presentation action set the toggle button disappears from toolbar when I open the multipage editor.
(In reply to Jonah Graham from comment #4) > > This is because the eclipse ui framework uses the EditorSite to get the id > > against which the action sets are matched. The workaround is to activate the > > "Editor Presentation" action set in the perspective. > > Even if I manually enable the Editor Presentation action set the toggle > button disappears from toolbar when I open the multipage editor. Sorry, I wrote "Editor Presentation" but meant "C/C++ Editor Presentation". By checking "Customize Perspective -> Action Set Availability -> C/C++ Editor Presentation", the button should always be visible in the perspective.
Hi Dominic, I have moved this to the next release. If you are able to revisit in the next few days we can still consider it for 10.7 and I can change the target milestone back.