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
Watabe Kichi is currently offline Watabe KichiFriend
Messages: 25
Registered: July 2011
Junior Member
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
com.ibm.icu_58.2.0.v20170418-1837.jar
org.eclipse.core.commands_3.9.0.v20170530-1048.jar
org.eclipse.core.jobs_3.9.2.v20171030-1027.jar
org.eclipse.core.runtime_3.13.0.v20170207-1030.jar
org.eclipse.equinox.common_3.9.0.v20170207-1454.jar
org.eclipse.equinox.registry_3.7.0.v20170222-1344.jar
org.eclipse.jface_3.13.2.v20171022-1656.jar
org.eclipse.jface.databinding_1.8.100.v20170503-1507.jar
org.eclipse.jface.text_3.12.1.v20171114-1359.jar
org.eclipse.osgi_3.12.50.v20170928-1321.jar
org.eclipse.text_3.6.100.v20170203-0814.jar
org.eclipse.ui.forms_3.7.101.v20170815-1446.jar
org.eclipse.ui.workbench_3.110.1.v20170704-1208.jar
----

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 Dec 11 17:39:23 GMT 2019

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

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

Back to the top