Search code examples
eclipsecontent-assist

Eclipse always shows private members in Content Assist


For quite a while now, as soon as I attach the JDK source code in Eclipse Content Assist lists all private members of classes I use as well. Without attaching the source I don't have the documentation and argument names, but with I get plenty of stuff listed I cannot access anyway.

The checkbox »Hide proposals not visible in the invocation context« in Properties > Java > Editor > Content Assist is already checked. Am I overlooking some setting?

Eclipse Classic here in a current version, but this behavior is in the Eclipse for Java developers as well, and in the past few versions too.


Solution

  • Solved it. The .settings for the project somehow explicitly disabled the setting and this is nowhere exposed in the UI. Manually setting it to enabled works.