Re: Eclipse - Method Parameter Info

151 views
Skip to first unread message

Sven Efftinge

unread,
Nov 16, 2012, 5:01:53 AM11/16/12
to xtend...@googlegroups.com
That information is currently only shown, when you have used content assist on the method before. But
not like in JDT when you come back later.

I've filed a ticket, for having that when coming back.


Thanks,
Sven


On Nov 16, 2012, at 10:08 AM, eugen...@googlemail.com wrote:

Hey,

i've started to use Xtend some days, and it is awesome! 

But i need some help, i'm using latest Xtend Release with Eclipse Juno on my MacBook.

And If I have a class with some functions which have the same Name, the Eclipse can't show me what other parameter this Function can have.

Example Java: 
class X{
 public function Y(){}
 public function Y(int i){}
 public function Y(int x, int y){}
}

And if try to use this class with Xtend I dont get any hints what other Parameters the function "Y" could use... its kinda slowing me down with the xtend fun :)

Are there no parameter hints oder am I just using the wrong shortcuts?

Best Regards,
Eugen

Eugen

unread,
Nov 16, 2012, 4:57:11 PM11/16/12
to xtend...@googlegroups.com
I dont even get the Hint-Window on first time, what Key-Binding is it, which should activate this Window?

Sven Efftinge

unread,
Nov 16, 2012, 5:00:46 PM11/16/12
to xtend...@googlegroups.com
It's shown after you've applied the content assist for 'foo'.

Eugen

unread,
Nov 16, 2012, 5:25:19 PM11/16/12
to xtend...@googlegroups.com
Hm cant get it work.

Just curious:
In the Java-Editor I can use Ctrl+Space , and the proposal Window lists all Overloads with

Foo()
Foo(int x)
Foo(int x, int y) and so on..

On Xtend-Editor I get a lot of other Proposals but none of the above .  

Eugen

unread,
Nov 17, 2012, 4:25:59 PM11/17/12
to xtend...@googlegroups.com
Tried also the Eclipse 4.3 M3 with Latest Version of Xtend (Bleeding Edge).

Also no Parameters gets listed.

The only Feature that can help me to view all Possible Parameters is F4 (View Type Hierarchy), any other better Solution for this? :)

Thanks in Advance

Sven Efftinge

unread,
Nov 19, 2012, 2:22:05 AM11/19/12
to xtend...@googlegroups.com
Just to make sure, we don't missunderstand.
given a variable of a type with overloaded foo called 'myVar'.

1) you write : myVar.foo
2) press ctrl+space
3) choose one of the proposed foo methods (All should be proposed)
4) you get the hover like in the screenshot I posted before.

No?

What windowing system do you use? which eclipse version?
Please file a bugzilla.

Sven

Eugen

unread,
Jan 10, 2013, 3:48:26 AM1/10/13
to xtend...@googlegroups.com


Am Montag, 19. November 2012 08:22:07 UTC+1 schrieb Sven Efftinge:

1) you write :  myVar.foo
2) press ctrl+space
3) choose one of the proposed foo methods (All should be proposed)
4) you get the hover like in the screenshot I posted before.

Yes, this works right :) 

My Bug is only when coming back, but you've already created the bug at bugzilla.
Reply all
Reply to author
Forward
0 new messages