Bug 569893

Summary: Parameters of examples in autocompletion
Product: [Eclipse Project] Platform Reporter: Jaide Ambrosio <jaide.sp>
Component: IDEAssignee: Platform-UI-Inbox <Platform-UI-Inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: enhancement    
Priority: P3 CC: wim.jongman
Version: 4.18Keywords: usability
Target Milestone: ---   
Hardware: PC   
OS: Windows 10   
Whiteboard:
Attachments:
Description Flags
Preferences location none

Description Jaide Ambrosio CLA 2020-12-23 05:52:51 EST
When we type in the beginning of the code to do the autocompletion, the function parameters come with data from strange examples.

Eg:
JButton buttonStart = new JButton("st");
buttonStart.setBounds(EXIT_ON_CLOSE, ABORT, WIDTH, HEIGHT);

In a normal situation:
buttonStart.setBounds(x, y, width, height);


-- Configuration Details --
Product: Eclipse IDE 4.18.0.20201210-1200 (org.eclipse.epp.package.java.product)Installed Features:
 org.eclipse.platform 4.18.0.v20201202-1800
Comment 1 Wim Jongman CLA 2020-12-23 07:20:12 EST
We have changed the defaults to guess the parameters. This does not always make sense.

If you want to switch back to the previous default, go to preferences/java/editor/content assist and select "insert parameter names"

https://www.eclipse.org/eclipse/news/4.18/jdt.php#param-best-guessed
Comment 2 Wim Jongman CLA 2020-12-23 07:20:42 EST
Created attachment 285104 [details]
Preferences location