Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Different types of eclipse java completion proposals

Tags:

eclipse

In eclipse completion proposals

Java -> editor -> content assist -> advanced

There are 3 types

  • Java Non-Type proposals
  • Java Type proposals
  • Java proposals

What is the exact difference between them. What is the last one "Java Proposals", by its name doesnt it include previous two ie "All proposals" ? So why it is there.

I saw this question but it doesnt seem to answer this question.

like image 823
Ratheesh Pai Avatar asked Mar 19 '12 09:03

Ratheesh Pai


People also ask

What is Java type proposals?

The difference between type and non-type proposals is more straightforward: type proposals allow references of Java types (available in the classpath), while non-type proposals include attributes, etc.

How do I change autocomplete in eclipse?

Step 1: Open your Eclipse or Spring Tool Suite, then go to the Window > Preferences as shown in the below image. Step 2: In the next screen go to the Java > Editor > Content Assist > Auto activation triggers for Java as shown in the below image.

How do I enable Content Assist in Eclipse?

To enable the Content Assist window to open automatically, go to the Content Assist Preferences page, accessed from Window | Preferences | PHP | Editor | Content Assist and mark the 'Enable auto-activation' checkbox.


1 Answers

As far as I know, Java proposals consists of both Non-type and Type proposals. So enabling all of them would result in duplicating potential output.

The difference between type and non-type proposals is more straightforward: type proposals allow references of Java types (available in the classpath), while non-type proposals include attributes, etc.

like image 188
Zoltán Ujhelyi Avatar answered Oct 10 '22 20:10

Zoltán Ujhelyi