[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-2121) Different behavior(result) of actions Find Seam Declarations and Find Seam References when call them using hot keys or selection from Navigate menu.

Victor Rubezhny (JIRA) jira-events at lists.jboss.org
Wed Apr 23 11:12:44 EDT 2008


    [ http://jira.jboss.com/jira/browse/JBIDE-2121?page=comments#action_12410262 ] 
            
Victor Rubezhny commented on JBIDE-2121:
----------------------------------------

Not a bug, normal behaviour.

These are two different ways to search...

First, is to select some JavaElement in Java Editor and then press Ctrl-G/Ctrl-Shift-G. In this case the Java-search will be started for the IJavaElemen selected. As the studio contains an additional IQueryParticipant, this participant also will be called during the search. Thus, the workspace files will be scanned for references to a given IJavaElement (the only Ctrl-Shift-G case - search for references to IJavaElement)

Second, is to select some text in Java Editor (this was developed for the Seam EL in Java-strings) and then press Ctrl-1 to invoke QuickFix dialog. In QuickFix Dialog appeared you could select the Search For Refernces/Declarations action to perform an appropriate search. In this case the workspace files will be scanned for references/declaration to the selected token in SeamEL (not the IJavaElement)

That's why the results are different. 
More over, by pressing the Ctrl-G in Java-Editor you will never invoke the Seam Search (because it searches for the declarations of a given IJavaElement, but Seam doesn't declare IJavaElement-s)


> Different behavior(result) of actions Find Seam Declarations and Find Seam References when call them using hot keys or selection from Navigate  menu.  
> -------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-2121
>                 URL: http://jira.jboss.com/jira/browse/JBIDE-2121
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>    Affects Versions: 2.1
>            Reporter: Anton Klimkovich
>         Attachments: Ctrl+G.PNG, NavigateMenu.PNG
>
>
> EXECUTE: Create default Seam web project 
> EXECUTE: Open Authenticator.java
> EXECUTE: Set cursor to identity
> EXECUTE: Press Ctrl+G  keys
> ASSERT:    Look at screenshot for result. (Ctrl+G.png)
> EXECUTE: Set cursor to identity
> EXECUTE: Select from Navigate menu or from Ctrl+1 context menu Find Seam Declarations
> ASSERT:    Search result should be the same with Ctrl+G find. 
> FAILURE:   Different search result of actions Find Seam Declarations and Find Seam References (NavigateMenu.png)
> For Find Seam References the same situation.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbosstools-issues mailing list