I have this problem with my Eclipse:
When I create a new type and I write "." after it's name to get all the methods that relate to it, nothing happens.
For example:
int[] exmp= new int [5];
exmp.?
I don't get any of the methods that relate to array.
Another example:
Public class Example{
private int example;
this.?
I don't get an automatic completion for this.example
Does somenoe know how to fix it? Thank you.
-
1Check this question to see if it helps. stackoverflow.com/questions/5373993/… you can also use ctrl+space to open the menuSean– Sean2011年05月26日 18:19:32 +00:00Commented May 26, 2011 at 18:19
-
I'll be happy to hear an explanation for the close voting.Unknown user– Unknown user2011年05月26日 18:19:38 +00:00Commented May 26, 2011 at 18:19
-
What eclipse are you using? Also, if you type "exmp." then hit ctrl+ space, does it show up?Joseph– Joseph2011年05月26日 18:22:04 +00:00Commented May 26, 2011 at 18:22
-
@ Joseph: I use Helios Service Release 2, And no, It does not show up/Unknown user– Unknown user2011年05月26日 18:30:19 +00:00Commented May 26, 2011 at 18:30
4 Answers 4
Excerpt from this helpful link. This fixed it for me about 2 hours ago.
Configure Eclipse’s content assist, go "Preferences>Java>Editor>Content Assist>Advanced". Make sure "Other Java Proposals" is ticked
Comments
Perhaps related to the build path. I've tried this after changing the location of my android sdk. My project properties/Libraries was still pointing to the wrong location. Editing it with the correct path fixed it.
Comments
Have you got your Auto Activation settings turned on?
You need to make sure that the "." character is present - I normally enter all letters on the keyboard so I get content assist quickly. You can see it in the "Auto activation triggers for Java" box below:
Comments
Are you using the Java editor? It sounds like you are just using Eclipse text editor. Try saving the file as *.java and reopening. That should make sure you are using the right editor.