Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » What is the standard way of setting key bindings for SourceViewer(SourceViewer KeyBindings)
What is the standard way of setting key bindings for SourceViewer [message #1797942] Fri, 09 November 2018 01:24
Missing name Mising name is currently offline Missing name Mising nameFriend
Messages: 43
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

Previous Topic:How to make a shell behaves like CompletionProposalPopup#fProposalShell
Next Topic:Databinding WidgetProperties.editable()
Goto Forum:

Current Time: Wed Apr 14 06:08:45 GMT 2021

Powered by FUDForum. Page generated in 0.01473 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top