Bug 569893 - Parameters of examples in autocompletion
Summary: Parameters of examples in autocompletion
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: IDE (show other bugs)
Version: 4.18   Edit
Hardware: PC Windows 10
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: usability
Depends on:
Blocks:
 
Reported: 2020-12-23 05:52 EST by Jaide Ambrosio CLA
Modified: 2020-12-23 07:21 EST (History)
1 user (show)

See Also:


Attachments
Preferences location (18.26 KB, image/png)
2020-12-23 07:20 EST, Wim Jongman CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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