• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Eclipse not showing suggested method choices

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 5167
11
Netbeans IDE Opera Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 165
Tomcat Server Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 344
Oracle Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Oracle Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sounds like perhaps a missing library or misconfiguration from the Eclipse in the Software Center, who knows.
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
rubbery bacon. rubbery tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic