| Summary: | Add EGL search UI | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Justin Spadea <jspadea> |
| Component: | EDT | Assignee: | Alice Connors <alicec> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | alicec |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
|
Description
Justin Spadea
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. Verified search is now available, and the new annotation/stereotype options are working. |