|What is the standard way of setting key bindings for SourceViewer [message #1797942]
||Fri, 09 November 2018 01:24
| Missing name Mising name
Registered: July 2011
Hello, I'm writing this message from Japan.|
I'm currently devloping a desktop application which uses only JFace + SWT.
And I created the editor class which uses org.eclipse.jface.text.source.SourceViewer.
I'm not developing with eclipse RCP or eclipse plugins.
JFace+SWT jar libraries were fetched from eclipse's plugin directory.
--- jar files
Here is my question.
What is the standard way of setting key bindings of org.eclipse.jface.text.source.SourceViewer.
I could find some sites witch explains about key bindings of eclipse RCP or eclipse plugin, but could not find the explanation of standalone application which only uses SWT+JFace.
I tried org.eclipse.jface.action.Action.setAccelerator but didn't work (may be it's deprecated ? or am I using it wrong? ).
I am now using VerifyKeyListener of styledText to set key bindings.
Is there any right way to do this?
Thank you very much in advance.
[Updated on: Fri, 09 November 2018 01:43]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01406 seconds