Community
Participate
Working Groups
when i press Ctrl + Space bar in place of boolean expression like while, if, for, it can show only boolean methods of reference variable For Example ----------- StringTokenizer st = new StringTokenizer("somthing") while( st. [ display only boolean returning methods of "st" reference] ){ } Note: For more, please check attachment
(In reply to comment #0) > when i press Ctrl + Space bar in place of boolean expression like > while, if, for, it can show only boolean methods of reference variable > For Example > ----------- > StringTokenizer st = new StringTokenizer("somthing") > while( st. [ display only boolean returning methods of "st" reference] ){ > } > Note: > For more, please check attachment This sounds problematic as it calls for too much mind reading. Boolean expressions get composed out of non boolean types by using operators. So a user may intend to do: String str = ... if (str.indexOf("com.ibm") > 0) and type String str = ... if (str.ind<Ctrl-Space> If we don't propose indexOf on account of its being a int method and not a boolean method, it would upset lots of users. Do we really want to do this feature ? Perhaps the suggested idea has been misunderstood ? I don't see any attachments that is being referred to in comment# 0
You are right, non boolean proposals should not be filtered but perhaps the boolean proposals could be proposed before the others in the list of proposals. To do that the 'relevance' of boolean proposals must be increase.(CompletionProposal#getRelevance())
Created attachment 130550 [details] Patch version 0.9 Potential patch.
Created attachment 130970 [details] Proposed patch Proposed patch + tests
Released in HEAD for 3.5 M7. Raised bug # 271295 and bug #271296 for issues found during this fix.
Verified for 3.5M7 using I20090426-2000