Community
Participate
Working Groups
Created attachment 211389 [details] Empty result Call Chain Completion does not work for me. For example in a View I want to access the Workbench Selection: getSite().getSelectionProvider().getSelection() If I type: getS -> Trigger code chain complietion the result is empty, not even getSite() is found.
Created attachment 211391 [details] Completion on MyView with expected type is ISelection Chain completion requires some expected type for a completion, i.e., it has to be triggered on an assignment, or method return etc. See this screenshot for an example. In your case, no expected type could be determined (there is no assignment or return that could be used to infer your expecation, i.e., the instance you are looking for. Thus, in these cases chain completion does not recommend anything. Is this an unexpected behavior? What would you expect to see (given that ISelection was not given)?
Thanks, I actually also tried that. Its seems that organize imports needs to run before the call chain gets completed. Example: ISelection sel = get -> Trigger shows nothing, if ISelection has not been imported yet I think a nice addition would be to evaluate the possible imports and show chain evaluation which fits to the possible values. I think that would be much smoother in the usage.
Yes, that would be great and a nice enhancement. Switched priority to "enhancement" and added "helpwanted"
I close this to get it out of my queue, please open another bug in case you plan to work on it.