[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-1912) ctrl+1 Find seam references should tell what it will actually search for

Victor Rubezhny (JIRA) jira-events at lists.jboss.org
Wed Mar 19 09:51:51 EDT 2008


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

Searching by Ctrl-G/Shift-Ctrl-G depends on "Ignore potential matches" option. If I'm correct in my understanging, we have not to use this option and we have to "ignore prtential matches" for any search.

My example with SeamSearchEngine is an abstract class, so the example is incorrect a little bit (the class cannot be instantiated and this fact plays a role on search for its methods...)

- Let's use another (non-abstract class) and place a dumb method "public int size() { return0; }" (I've used SeamSearchVisitor class - it is not an abstract)
- Let's turn the "Ignore potential matches" option on (this will ignore the potential matches)

How it works for the Java Editor (let's search for SeamSearchVistror.size() method's references and declarations):

While searching for references to the method (using shift-ctrl-G):  it will not find any references - You're right, it searches for references to SeamSearchVisitor.size() references, but not references to any "size()" method. (If we'll turn the "Ignore..." option off then it will find many potentional matches)

While searching for declarations of the method (using ctrl-G):  it will find as many occurrences as many times the method "public int size()" declared in the classes. My search finds about 600 ocurrences. (Remember that they are not the potential matches?) So, it doesn't care of type declared our method, it finds any declarations of  "size()".





> ctrl+1 Find seam references should tell what it will actually search for
> ------------------------------------------------------------------------
>
>                 Key: JBIDE-1912
>                 URL: http://jira.jboss.com/jira/browse/JBIDE-1912
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: Seam
>            Reporter: Max Andersen
>         Assigned To: Victor Rubezhny
>             Fix For: 2.1
>
>         Attachments: 2008-03-19_0014.png, javasearch-screenshot.jpg
>
>
> today Ctrl+1 just says "Find Seam references" or "Find Seam declarations"
> It would be more helpfull if it could say "Find Seam references for 'authenticator'" so users would know what it is actually trying to search for.

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