Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Key Binding confilicts in 3.4
Key Binding confilicts in 3.4 [message #330492] Wed, 30 July 2008 07:01 Go to next message
Kiran Kumar is currently offline Kiran KumarFriend
Messages: 8
Registered: July 2009
Junior Member
I am having a key-binding conflict for an editor, which I developed, in
Eclipse 3.4. The same code is working properly in the previous versions of
eclipse.

When I debugged, I found that all the contexts available are getting
activated for the editor in 3.4 while in earlier versions, only
org.eclipse.ui.contexts.dialogAndWindow, org.eclipse.ui.contexts.window
are activated. I am not setting any context explicitly for the editor.

Since now all the contexts are active the Ctrl+s binding is getting bound
to text editor, which is used as a control in the editor, instead of the
editor itself.

Is there any change in 3.4 or am I doing anything wrong.

Any inputs will be really appreciated.
Re: Key Binding confilicts in 3.4 [message #330529 is a reply to message #330492] Thu, 31 July 2008 14:30 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

CTRL+S is always been save (in the default scheme) AFAIK. There is
better error reporting in 3.4 that might be adding to your log.

Normally if an editor wants to use keybindings (especially ones that can
be used in the rest of eclipse) they create their own context (usually
parented off of "org.eclipse.ui.contexts.window" ) and assign their
keybindings there. That's what TextEditor and JavaEditor do, check out
AbstractTextEditor for an example.

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/workbench.htm


Previous Topic:create ANT builder programmatically
Next Topic:how can i disable max button in a view?
Goto Forum:
  


Current Time: Thu Aug 15 05:21:17 GMT 2024

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

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

Back to the top