Bug 559369

Summary: Register ITextEditorActionDefinitionIds handler
Product: [Eclipse Project] Platform Reporter: Dawid Pakula <zulus>
Component: TextAssignee: Platform-Text-Inbox <platform-text-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3    
Version: 4.15   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Dawid Pakula CLA 2020-01-21 08:10:30 EST
I'm trying to register some ITextEditorActionDefinitionIds for my source viewer via ui.handler extension point but is not possible.

Only way is hardcode in *Editor.createNavigationActions or to use deprecated editorActions extension point. Mentioned actions:

1.LINE_START
2.SELECT_LINE_START
3.LINE_END
4.SELECT_LINE_END
5.WORD_PREVIOUS
6.WORD_NEXT
7.SELECT_WORD_PREVIOUS
8.SELECT_WORD_NEXT

JDT create such actions via createNavigationActions(), and to keep this actions in MergeViewer, create special CompilationUnitEditorAdapter and playing with action synchronisation.

If not via ui.command and handlers, I hope that action registration could be part of SourceViewerConfiguration.

See also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=455985#c7