Eclipse 3.1, Oxygen 6.1 and F3

Having trouble installing Oxygen? Got a bug to report? Post it all here.
DavidPérez
Posts: 44
Joined: Fri Aug 05, 2005 2:18 pm

Eclipse 3.1, Oxygen 6.1 and F3

Post 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.
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post 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
DavidPérez
Posts: 44
Joined: Fri Aug 05, 2005 2:18 pm

Post 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. :?:
DavidPérez
Posts: 44
Joined: Fri Aug 05, 2005 2:18 pm

Post by DavidPérez »

Is there any workaround?
Is this a bug?
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Eclipse 3.1, Oxygen 6.1 and F3

Post 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
DavidPérez
Posts: 44
Joined: Fri Aug 05, 2005 2:18 pm

Post 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]
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post 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
Post Reply