Skip to main content



      Home
Home » Newcomers » Newcomers » Code assist and ()
Code assist and () [message #172623] Tue, 26 September 2006 19:26 Go to next message
Eclipse UserFriend
Originally posted by: wojtek.a.com

v 3.2

if I have the following:

out.append(var.getText());

I want to change getText() to getType(). So I double click on getText, type gett and press CTRL-SPACE. getType() is shown. I press enter to select it.
What I get is:

out.append(var.getType()());

code assist inserted an extra ()

This did not happen in 3.1. I have tried to find out where to turn this off with no luck.
Re: Code assist and () [message #172647 is a reply to message #172623] Tue, 26 September 2006 21:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse4.rizzoweb.com

Wojtek wrote:
> v 3.2
>
> if I have the following:
>
> out.append(var.getText());
>
> I want to change getText() to getType(). So I double click on getText,
> type gett and press CTRL-SPACE. getType() is shown. I press enter to
> select it. What I get is:
>
> out.append(var.getType()());
>
> code assist inserted an extra ()
>
> This did not happen in 3.1. I have tried to find out where to turn this
> off with no luck.

In Preferences, Java > Editor > Content Assist there is an option to
have "Completion overwrite" instead of "Completion inserts."

--
Hope this helps,
Eric
Re: Code assist and () [message #172757 is a reply to message #172647] Wed, 27 September 2006 10:05 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wojtek.a.com

Eric Rizzo wrote:
> In Preferences, Java > Editor > Content Assist there is an option to
> have "Completion overwrite" instead of "Completion inserts."

Yup. Have had that set for a long time (to Completion inserts).

3.1 did not insert the two braces.

3.2 does

3.1 only inserted the two braces if they did not already exist.
Re: Code assist and () [message #172798 is a reply to message #172757] Wed, 27 September 2006 15:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: olivier.frouin.club-internet.fr

Wojtek a écrit :
> Eric Rizzo wrote:
>> In Preferences, Java > Editor > Content Assist there is an option to
>> have "Completion overwrite" instead of "Completion inserts."
>
> Yup. Have had that set for a long time (to Completion inserts).
>
> 3.1 did not insert the two braces.
>
> 3.2 does
>
> 3.1 only inserted the two braces if they did not already exist.

You may also set the insertion point after getT, press CTRL-SPACE,
select getType and use CTRL-ENTER.
Re: Code assist and () [message #172880 is a reply to message #172798] Thu, 28 September 2006 10:20 Go to previous message
Eclipse UserFriend
Originally posted by: wojtek.a.com

Olivier Frouin wrote:
> Wojtek a écrit :
>> Eric Rizzo wrote:
>>> In Preferences, Java > Editor > Content Assist there is an option to
>>> have "Completion overwrite" instead of "Completion inserts."
>>
>> Yup. Have had that set for a long time (to Completion inserts).
>>
>> 3.1 did not insert the two braces.
>>
>> 3.2 does
>>
>> 3.1 only inserted the two braces if they did not already exist.
>
> You may also set the insertion point after getT, press CTRL-SPACE,
> select getType and use CTRL-ENTER.

OK, that works, except when there is only one suggestion. Then it is automatically inserted with the ().

Yes, I know I can turn this off.

I guess I need to file a bug report. Done: bug #159113
Previous Topic:word completion display mode
Next Topic:How to make "*.jelly" be treated exactly like an XML file?
Goto Forum:
  


Current Time: Sat May 10 07:16:42 EDT 2025

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

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

Back to the top