Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 346312 - Add EGL search UI
Summary: Add EGL search UI
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Alice Connors CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-18 14:08 EDT by Justin Spadea CLA
Modified: 2017-02-23 14:18 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Spadea CLA 2011-05-18 14:08:03 EDT
The search code is already there, we just need UI to surface it to users so that they can run searches on their workspace.

We should also provide various context menu actions to run searches, e.g. right click on a part to search for references to it.
Comment 1 Alice Connors CLA 2011-06-29 20:57:01 EDT
I've added the EGL Search dialog, which now allows searching for annotations and stereotypes.  Added the EGL Search menu item to multiple search context menus.  

Added References and Declarations context menu items when in the EGL editor.  It doesn't look like References and Declarations are needed on a file's context menu since our files don't necessarily correspond to EGL parts.

Although References and Declarations are on the editor popup menu, they are currently not in the Search menu on the menu bar when the editor is active.  (They are not here in RBD either but I wanted to add them for EDT.)  The problem is I can't extend the Search menu in org.eclipse.ui.menus.  It is an Eclipse bug whose workaround is to redefine org.eclipse.search.menu in a plugin.xml if you want to extend it.  (Example is in the jdt.ui plugin.)  If I define the search menu as an actionSet, I can define actions for References/Declarations in Workspace/Project/Working set.  (Defining it in org.eclipse.ui.menus didn't work.)  Then I need to define action classes for them, rather than action handlers like the rest of the context menu items.  After that, I need to instantiate the action class in the EGLEditor, like the following:
   action = new FindProjectReferencesAction(eglResourceBundle,   "FindProjectReferencesAction."); 
   ((FindProjectReferencesAction)action).init(this);
because the action class needs the editor passed to it.  Since we're trying to get away from this sort of implementation in EDT, I have not added these to the Search menu on the menu bar.
Comment 2 Justin Spadea CLA 2011-07-05 11:18:10 EDT
Verified search is now available, and the new annotation/stereotype options are working.