Page 1 of 1

Eclipse 3.1, Oxygen 6.1 and F3

Posted: Wed Aug 17, 2005 11:12 am
by DavidPérez
I have redefined the F3 key to search next instance.

Eclipse 3.1 + Oxygen 5.1 did correctly use F3 to search next.

But when I hit F3 in Eclipse 3.1 + Oxygen 6.1, it tries to open a java file whose name corresponds to the word under the cursor!!!.

I have checked that F3 isn't assigned to any other command.
I think this is a bug.

Posted: Wed Aug 17, 2005 11:49 am
by george
Hi David,

F3 is mapped in the xml editor scope to Open resource action (also available on the contextual menu).
To disable this mapping follow the steps below:
1. Go to the Window->Preferences dialog
2. Select General/Keys page
3. In the Command group select oXygen XML Editor for Category and Open resource for Name
4. In the Key Sequence group select XML Common Editor scope -- Open Resource and use the Remove action to remove it.

Best Regards,
George

Posted: Thu Aug 18, 2005 9:39 am
by DavidPérez
Thanks for your answer.

But F3 is not mapped to Open Resource in the XML scope.
As a matter of fact it isn't mapped to any key.
I think it is hardwired. :?:

Posted: Fri Aug 19, 2005 2:26 pm
by DavidPérez
Is there any workaround?
Is this a bug?

Re: Eclipse 3.1, Oxygen 6.1 and F3

Posted: Fri Aug 19, 2005 6:02 pm
by sorin_ristache
Hello,
DavidPérez wrote:I have redefined the F3 key to search next instance.

Eclipse 3.1 + Oxygen 5.1 did correctly use F3 to search next.

But when I hit F3 in Eclipse 3.1 + Oxygen 6.1, it tries to open a java file whose name corresponds to the word under the cursor!!!.
DavidPérez wrote:Is there any workaround?
Is this a bug?
Use the normal procedure for assigning a key to the Find Next action:

1. Go to the Window->Preferences dialog
2. Select General/Keys page
3. In the Command group select Edit for Category and Find Next for Name
4. In the Key Sequence group press F3 for Name and select XML Common Editor scope for When
5. Press the Add button
6. Press the OK button

Best Regards,
Sorin

Posted: Mon Aug 22, 2005 10:21 am
by DavidPérez
Thanks Sorin.

I had the problem because the only use reported in Eclipse for the F3 key was:

- Scope: Editing text
- Command: Find next
- Key: F3

If I also add the other scope

- Scope: XML Common Editor
- Command: Find next
- Key: F3

now works ok. :D

Maybe the bug is not showing the assignment to the F3 key to the Open resource command. This has confused me.[/quote]

Posted: Mon Aug 22, 2005 12:13 pm
by sorin_ristache
Hello,
DavidPérez wrote:Maybe the bug is not showing the assignment to the F3 key to the Open resource command. This has confused me.
All the key associations are listed in Preferences - General - Keys. It is the place where Eclipse lists all the associations and where <oXygen/> adds the categories oXygen XML Editor and XSLT Debugger and the editor scopes like XML Common Editor scope, XSD Editor scope, XSL Editor scope, etc.

Best regards,
Sorin