This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Eclipse not showing suggested method choices

 
Bradley Arvin
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I hope this is the right section. Whenever I am typing in Eclipse, no suggested methods ever come up. Here is a link to what I should see: Eclipse help. Also when I do what that article say, I still get no recommendations. For the record, I am on Ubuntu and I use Eclipse Indigo.

Thanks,
Brad
 
Darryl Burke
Bartender
Posts: 5115
11
Java Netbeans IDE Opera
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Bradley, and welcome to the Ranch! Your question is a better fit here than in Beginning Java, so I've moved it for you.
 
Vinod Vijay
Ranch Hand
Posts: 146
Java Tomcat Server Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bradley Arvin wrote:I hope this is the right section. Whenever I am typing in Eclipse, no suggested methods ever come up. Here is a link to what I should see: Eclipse help. Also when I do what that article say, I still get no recommendations. For the record, I am on Ubuntu and I use Eclipse Indigo.

Thanks,
Brad


Eclipse will certainly show you the suggested methods. You need to press both control key + space key at the same time after the dot (.) operator.
For e.g. Employee emp = new Employee();
emp.[ctl key + space key]
 
Bradley Arvin
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Eclipse will certainly show you the suggested methods. You need to press both control key + space key at the same time after the dot (.) operator.
For e.g. Employee emp = new Employee();
emp.[ctl key + space key]


It normally would. However on my new computer, neither in Ubuntu or Windows, does Eclipse show the suggested methods. I took a screen shot so you can see what I'm talking about. My Screen Shot. I hope this can help.
 
Koen Aerts
Ranch Hand
Posts: 344
Java Linux Oracle
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sometimes this may happen if there's a code error elsewhere in your source file... not sure if that's the case for you or not.

Also, I know it's not related to the question you're asking, but I just can't let it go... in your screenshot you have a bunch of if() else() statements; each one does raw.toLowerCase().equals("color"); .... that's a lot of redundant toLowerCase() calls, plus what happens if "raw" is null? Maybe just before the first if() statement, do this: Then change each if() statement like this: It will improve performance and handles cases where "raw" is null.
 
Bradley Arvin
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Koen Aerts wrote:Sometimes this may happen if there's a code error elsewhere in your source file... not sure if that's the case for you or not.

Also, I know it's not related to the question you're asking, but I just can't let it go... in your screenshot you have a bunch of if() else() statements; each one does raw.toLowerCase().equals("color"); .... that's a lot of redundant toLowerCase() calls, plus what happens if "raw" is null? Maybe just before the first if() statement, do this: Then change each if() statement like this: It will improve performance and handles cases where "raw" is null.


Actually at the beginning of the code I do and I did just tweak out the multiple . Thank you for your comment. Also, along your first idea, I created a new class with just one line and it still didn't recommend anything.
 
Bradley Arvin
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok so I was experimenting with various things and I found that the Eclipse that I downloaded from the Ubuntu Software Center doesn't show the suggested methods. However, the Eclipse I downloaded from their website does show it. So I'm not sure what to say about that.
 
Koen Aerts
Ranch Hand
Posts: 344
Java Linux Oracle
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sounds like perhaps a missing library or misconfiguration from the Eclipse in the Software Center, who knows.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bradley Arvin wrote:Ok so I was experimenting with various things and I found that the Eclipse that I downloaded from the Ubuntu Software Center doesn't show the suggested methods. However, the Eclipse I downloaded from their website does show it. So I'm not sure what to say about that.

I know what to say - never trust Java packages provided by a Linux distro, instead always download them from their web sites!
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic