aspose file tools*
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
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Juno strange proposals" Watch "Juno strange proposals" New topic
Author

Juno strange proposals

Julius Stecik
Greenhorn

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
author
Sheriff

Joined: Sep 28, 2004
Posts: 19073
    
  40



Moving this topic to the IDE forum...


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

Joined: May 14, 2008
Posts: 5845
    
    7

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
Greenhorn

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
Bartender

Joined: Mar 17, 2011
Posts: 8427
    
  23

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.

Winston

Isn't it funny how there's always time and money enough to do it WRONG?
Articles by Winston can be found here
Jinu Vijay
Greenhorn

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: http://aspose.com/file-tools
 
subject: Juno strange proposals