Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » shortcut key for copy qualified name(setting binding in preferences does not work)
shortcut key for copy qualified name [message #1066931] Fri, 05 July 2013 08:05 Go to next message
Diana Mising name is currently offline Diana Mising nameFriend
Messages: 34
Registered: July 2009
Member
Hi

I have tried to set up a shortcut key combination for "Copy qualified name" action.
So I set it up in preferences, for the "In windows" option, but it doesn't work. Then, I tried to set it for "Editing Java Source". Still, it doesn't work.
I have tried to press the shortcut keys while the caret is on a class and then with the class name selected, but to no avail.
Am I missing something? Do I have to use a certain perspective? Should I select something else in the "When" category?
As a context menu, the function works.

The only workaround I found is a combination of
ctrl-H (opens the java search dialog and the full class name is displayed),
then ctrl-c (copy),
then esc (to close the search dialog).

But I really want a smoother way of doing it, so please help.

Thanks
Re: shortcut key for copy qualified name [message #1067248 is a reply to message #1066931] Mon, 08 July 2013 05:42 Go to previous messageGo to next message
Noopur Gupta is currently offline Noopur GuptaFriend
Messages: 24
Registered: December 2012
Location: Bangalore, India
Junior Member
I tried with Eclipse 4.3 (Kepler) and it works.
Go to Windows > Preferences > General > Keys.
With 'Default' scheme, type 'Copy Qualified Name' in filter and select the command from the table.
In Binding, type your key binding. For example: Ctrl+Q
In When, select 'Editing Text'.
Click Apply and OK.

Now, in your java editor, keep the cursor on any element and press Ctrl+Q.
That copies the qualified name of the element.
Re: shortcut key for copy qualified name [message #1067516 is a reply to message #1067248] Tue, 09 July 2013 08:13 Go to previous message
Diana Mising name is currently offline Diana Mising nameFriend
Messages: 34
Registered: July 2009
Member
You are right, I was trying it in Juno. I've upgraded to Kepler, and it works.
Thanks a lot!
Previous Topic:Corrupted characters in textarea
Next Topic:Turn off auto-insert?
Goto Forum:
  


Current Time: Sun Dec 21 15:19:54 GMT 2014

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

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