Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » ctrl+c/v/x in Eclipse 3.5
ctrl+c/v/x in Eclipse 3.5 [message #336965] Thu, 16 July 2009 19:05 Go to next message
Eclipse User
Originally posted by: jpeltzer.rossvideo.com

I can't speak for Eclipse 3.4 but in Eclipse 3.2/3.3, the ctrl-x,c, and v
keys worked fine with swing controls embedded in SWT.

As of Eclipse 3.5, they have stopped working.

They work fine until I update the org.eclipse.ui plugin to 3.5 (I tried
replacing SWT independently). It seems that the key bindings in that plugin
are causing the events to be filtered out.

So far, the only work around I have found is to get the IBindingService and
set the key filter to off but this supposedly impacts/disables all key
binding shortcuts (obviously not desirable).

I had originally posted about this in the Albireo swt/awt integration forum
but was told I should repost over here:

Grant Wrote:
"I know that at least until 3.4.x that one step
that was taken in reaction to Ctrl+C/V/W was to introspect on the focus
control for copy()/cut()/paste() methods, and this was done specifically to
handle the case of a Swing control like a text field having focus. I'm
pretty sure that this would not have been intentionally changed in 3.5, so
there may be a regression that Eclipse UI needs to investigate."


Any help/solutions you can provide would be appreciated.

Thanks,

James
Re: ctrl+c/v/x in Eclipse 3.5 [message #336975 is a reply to message #336965] Fri, 17 July 2009 17:42 Go to previous message
Paul Webster is currently offline Paul Webster
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

There is a difference between 3.4.2 and 3.5. 3.4.2 contains the fix for
https://bugs.eclipse.org/bugs/show_bug.cgi?id=243210

3.5 contains the same fix, as well as
https://bugs.eclipse.org/bugs/show_bug.cgi?id=249441 which is more
aggressive about trying to determine if there is something to be copied
or pasted. It adds a focus listener to update the handler.

Could it be that the fix for 249441 is eagerly disabling the copy command?

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/ganymede/index.jsp?topic=/org.eclips e.platform.doc.isv/guide/workbench.htm


Previous Topic:How To Create A Customized Start Up Page For My Plugin
Next Topic:Galileo: Startup/Shudown interface does not work.
Goto Forum:
  


Current Time: Sat Oct 25 05:58:27 GMT 2014

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

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