Bug 559369 - Register ITextEditorActionDefinitionIds handler
Summary: Register ITextEditorActionDefinitionIds handler
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 4.15   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-21 08:10 EST by Dawid Pakula CLA
Modified: 2020-01-21 08:10 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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