Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Constructor details
Constructor details [message #213356] Fri, 01 June 2007 19:23 Go to next message
Irshad is currently offline IrshadFriend
Messages: 3
Registered: July 2009
Junior Member
Hello! I'm a new Eclipse user. I have some little knowledge about
programming in JAVA. I was using the GEL IDE for JAVA. Now i found the
ECLIPSE!

I want to know one thing:

In gel when I write the constructor method, when I open the first
parenthesis, the IDE give's me the parameters details for that
constructor. But in the ECLIPSE nothing like that occurs. Is there any
function I can activate for this to happen?
Re: Constructor details [message #213379 is a reply to message #213356] Fri, 01 June 2007 22:51 Go to previous messageGo to next message
Mark Dexter is currently offline Mark DexterFriend
Messages: 324
Registered: July 2009
Senior Member
irshad wrote:

> Hello! I'm a new Eclipse user. I have some little knowledge about
> programming in JAVA. I was using the GEL IDE for JAVA. Now i found the
> ECLIPSE!

> I want to know one thing:

> In gel when I write the constructor method, when I open the first
> parenthesis, the IDE give's me the parameters details for that
> constructor. But in the ECLIPSE nothing like that occurs. Is there any
> function I can activate for this to happen?

Hi. You need to use "Content Assist" which is CTRL-Space. So type
CTRL-Space right after the parenthesis like follows: Book b = new
Book(CTRL-Space)

This is one of the handiest features of Eclipse. Also, use CTRL-1 when you
get a compile error and it will suggest a "quick-fix" (e.g., such as
importing a needed package, etc.). Good coding! Mark Dexter
Re: Constructor details [message #213404 is a reply to message #213379] Sat, 02 June 2007 14:10 Go to previous messageGo to next message
Irshad is currently offline IrshadFriend
Messages: 3
Registered: July 2009
Junior Member
Thank you Mark Dexter! It was very useful.

One thing also I want to know:

In the GEL IDE when the pop-up menu appears (Like this: System.(when I
press dot, appears a pop-up menu)), it gives me a brief description about
the method and the parammeters. How can i have this description in the
Eclipse?

Thank you.

Best Regards.
Re: Constructor details [message #213436 is a reply to message #213404] Sat, 02 June 2007 20:31 Go to previous messageGo to next message
Mark Dexter is currently offline Mark DexterFriend
Messages: 324
Registered: July 2009
Senior Member
irshad wrote:

> Thank you Mark Dexter! It was very useful.

> One thing also I want to know:

> In the GEL IDE when the pop-up menu appears (Like this: System.(when I
> press dot, appears a pop-up menu)), it gives me a brief description about
> the method and the parammeters. How can i have this description in the
> Eclipse?

> Thank you.

> Best Regards.

It's a little hard to describe. On my system, I get a yellow box next to
the list of options. For example, if I type "sys" and then press
CTRL-Space, I get a list of options. If I arrow down to "System -
Java.lang", I get a yellow text box next to the drop-down list box that
contains a bunch of documentation about the System class. As I arrow up or
down, the text in the box changes.

By the way, if you do a lot of System.out.println("test") commands, a cool
shortcut is to just type in the string you want to print (e.g., "test"),
highlight it, press CTRL-Space, the UP arrow, and ENTER. Eclipse puts in
the rest of the command automatically. CTRL-Space is your friend! HTH.
Mark Dexter
Re: Constructor details [message #213498 is a reply to message #213436] Sun, 03 June 2007 18:26 Go to previous messageGo to next message
Irshad is currently offline IrshadFriend
Messages: 3
Registered: July 2009
Junior Member
------------------------------------------------------------ -------------------
Mark Dexter wote:

It's a little hard to describe. On my system, I get a yellow box next to
the list of options. For example, if I type "sys" and then press
CTRL-Space, I get a list of options. If I arrow down to "System -
Java.lang", I get a yellow text box next to the drop-down list box that
contains a bunch of documentation about the System class. As I arrow up or
down, the text in the box changes.

By the way, if you do a lot of System.out.println("test") commands, a cool
shortcut is to just type in the string you want to print (e.g., "test"),
highlight it, press CTRL-Space, the UP arrow, and ENTER. Eclipse puts in
the rest of the command automatically. CTRL-Space is your friend! HTH.
Mark Dexter
------------------------------------------------------------ -------------------

Thanks again Mark Dexter! I have found the solution for my problem!

The Eclipse detected the JRE in my machine and not the JDK. So, the JRE
was unable to give the documentation about the methods and parammeters. So
I did a search and selected the JDK path and enabled it. Thats all!

Now when I type "sys" and then press CTRL-Space, I get a list of options
and a yellow text box next to the drop-down list box as you said.

But for one thing I am not really happy. I can't read all the
documentation in the yellow box. It's too small! I think a good ideia
would be to have a scroll bar under the box so we could read all the
information it gives.
Re: Constructor details [message #213546 is a reply to message #213498] Sun, 03 June 2007 22:41 Go to previous message
Mark Dexter is currently offline Mark DexterFriend
Messages: 324
Registered: July 2009
Senior Member
> But for one thing I am not really happy. I can't read all the
> documentation in the yellow box. It's too small! I think a good ideia
> would be to have a scroll bar under the box so we could read all the
> information it gives.

At the bottom of the yellow box, it says "Press F2 for focus". If you do
that, you can scroll the text box. Cheers. Mark Dexter
Previous Topic:Adding a new server to Eclipse
Next Topic:"Select tag" dialogue focus issues
Goto Forum:
  


Current Time: Fri Sep 20 20:34:06 GMT 2024

Powered by FUDForum. Page generated in 0.06439 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top