File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes IDEs, Version Control and other tools and the fly likes Juno strange proposals Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Juno strange proposals" Watch "Juno strange proposals" New topic

Juno strange proposals

Julius Stecik

Joined: Feb 19, 2011
Posts: 6
Hi, I've recently installed Eclipse Juno and i am trying to write some simple code. But when i create some method or variable it will not show in proposals menu. When i hit ctrl + space it is showing other methods and stuff but my own not. If i write it down manually it will still recognize it as invalid input. Can anyone help me please, i am pretty stuck at this point, without this feature, juno is useless. One more thing, i've tried things like this. ... , and through getters and setters, no success. Thanks for your time
Henry Wong

Joined: Sep 28, 2004
Posts: 20380

Moving this topic to the IDE forum...

Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Peter Johnson

Joined: May 14, 2008
Posts: 5852

What to you mean by "proposals menu"? Do you mean autocompletion? In other words, if you have a variable, foo, of type Foo, and you type "foo." and hit CRTL-space, you should be shown a list of methods and fields available to complete the code? That workd for me.

Perhaps if you offer a complete example we could be of more help.

JBoss In Action
Julius Stecik

Joined: Feb 19, 2011
Posts: 6
Thank you for response. Yes i mean autocompletion. After few trials i have found solution, which i do not get . When i am creating object from class, i must use static type definition before it.

Like this: static ClassName objectName = new ClassName();
except:ClassName objectName = new ClassName();

If i will not, autocompletion menu is full of methods, classes etc. except that one. Two years ago i was writing bechelor thesis in java, and i do not remember that i was forced to do this. Can you please somehow explain me this procedure ? I am usually use static variables, but objects ?
Winston Gutkowski

Joined: Mar 17, 2011
Posts: 8837

Julius Stecik wrote:I am usually use static variables, but objects ?

A variable is a variable, object or otherwise; and the fact is that you never use objects directly.

Also: if you "usually" use static variables, then you're almost certainly doing things wrong; static should be used only when there is a need for it, and almost never for creating variables.
Constants: possibly; but they should be qualified with final; and there are often other alternatives even for them.


Bats fly at night, 'cause they aren't we. And if we tried, we'd hit a tree -- Ogden Nash (or should've been).
Articles by Winston can be found here
Jinu Vijay

Joined: Sep 19, 2011
Posts: 20

Might help to have a look at Content Assist (Preferences -> Java -> Editor -> Content Assist) to verify the setting.

Auto-activation should be enabled ( I assume this is the case already). Verify other parameters like delay and triggers.
I agree. Here's the link:
subject: Juno strange proposals
It's not a secret anymore!