Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » wrong handler for keybinding Ctrl+V when using multiple TextEditors
wrong handler for keybinding Ctrl+V when using multiple TextEditors [message #821518] Thu, 15 March 2012 09:17 Go to next message
Eclipse UserFriend
Hi,

It's my first post on this forum.

I've implemented a page in a multipage editor that include three texteditors based on AsbtractTextEditor.

When activating the CRTL+V keys in any of the three texteditors, only the handler for the third is executed, and the paste operation occurs in that editor.

I thinked that this problem was due to a wrong SelectionProvider configuration and tested the SelectionProviderIntermediate solution (with setting of the SelectionProviderDelegate of the texteditor that gains focus).

But it seems that the selection service has no effect on the keybinding "dispatching".

Can someone help me to fix my problem ?

[Updated on: Fri, 16 March 2012 11:18] by Moderator

Re: wrong handler for keybinding Ctrl+V when using multiple TextEditors [message #824249 is a reply to message #821518] Mon, 19 March 2012 08:44 Go to previous messageGo to next message
Eclipse UserFriend
Without any code, it sounds like the multiple editor isn't fully aware which is the active editor.
Re: wrong handler for keybinding Ctrl+V when using multiple TextEditors [message #824304 is a reply to message #824249] Mon, 19 March 2012 10:06 Go to previous messageGo to next message
Eclipse UserFriend
Hi Brian,

Thanks for your answer.

I've tried to explicitly set active editor to one of the three editors in the page. It has no effect on the problem. In fact, the setActiveEditor method don't call setActivePage because there is no page that has been created with addPage(IEditorPart, IEditorInput).
Re: wrong handler for keybinding Ctrl+V when using multiple TextEditors [message #825921 is a reply to message #824304] Wed, 21 March 2012 08:26 Go to previous message
Eclipse UserFriend
it will only dispatch key events correctly if you've added the 3 editors with addPage(*). If you have not, what exactly did you do?

PW
Previous Topic:Adding command, menu contributions, handlers programmatically
Next Topic:Export wizard missing bundle
Goto Forum:
  


Current Time: Wed Jul 23 10:59:38 EDT 2025

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

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

Back to the top