Bug 21876 - Find dialog sometimes won't show itself
Summary: Find dialog sometimes won't show itself
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nick Edgar CLA
QA Contact:
URL:
Whiteboard:
Keywords: investigate
Depends on:
Blocks:
 
Reported: 2002-07-24 16:21 EDT by David Almilli CLA
Modified: 2002-09-04 13:11 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Almilli CLA 2002-07-24 16:21:52 EDT
I'm not too sure what the conditions of it are, but I've had this happen 
several times.  I have a java file or xml file open in an editor and I hit Ctrl-
F and it does nothing.  I then went to the edit menu and the Find was grayed 
out.

The work around fix was to do a refresh on that file and then Ctrl-F starts 
working again.
Comment 1 David Almilli CLA 2002-07-24 16:28:05 EDT
Ok, I think I may have just figured out when it happens.  I have the open mode 
set to single click.  If I single click on a file in the package explorer that 
is not already open and then do a Ctrl+F before modifying the file, it won't 
show the dialog.  If I were to double click the file in the package explorer, 
it will show.
Comment 2 Nick Edgar CLA 2002-07-25 11:08:48 EDT
Edit/Find is a retargetable action that targets the active view or editor.
Since the packages view remains active, but does not hook a handler for Find, 
the menu item remains disabled.
You need to activate the editor first.  You can do this either by clicking on 
it or using F12.

This is a side effect of the way retargetable actions work.  It is too 
confusing to have retargetable actions target different parts.

However, it probably makes sense for Find to only target editors, never views.
The current retargetable action mechanism does not support this.

This could be done if the find action was contributed as a regular global 
action, rather than as a retargetable action, and tracked its own context (the 
active editor).
Comment 3 David Almilli CLA 2002-07-25 12:37:11 EDT
Ok, I tried that.  I noticed that the package explorer was still highlighted 
and I clicked in the editor.  It works for java files and highlights the editor 
window and Ctrl-F works.  But if I single click an XML file, it opens the 
editor, then no matter how many times you click inside the editor it never 
makes it active and Ctrl-F doesn't work.  If I click on the tab for the editor, 
it highlights and starts working.
Comment 4 Tod Creasey CLA 2002-09-04 13:11:06 EDT
This works with the text editor and an xml file in 20020827.