Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Java content assist: Typing in '(' after the method name automatically selected the method...?
Java content assist: Typing in '(' after the method name automatically selected the method...? [message #245899] Wed, 18 July 2007 01:25 Go to next message
Alex Le is currently offline Alex LeFriend
Messages: 649
Registered: July 2009
Senior Member
Hi,

In java, when the list of proposals is displayed, if I typed in the '('
character, the current proposal (the highlighted one) from the list of
proposal is automatically chosen, and context info popup is shown. How
is that done in the Java editor? Thanks.
Re: Java content assist: Typing in '(' after the method name automatically selected the method...? [message #245914 is a reply to message #245899] Wed, 18 July 2007 08:20 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
AL wrote:

> Hi,
>
> In java, when the list of proposals is displayed, if I typed in the
> '(' character, the current proposal (the highlighted one) from the
> list of proposal is automatically chosen, and context info popup is
> shown. How is that done in the Java editor? Thanks.

This is done by the content assistant framework: it asks the selected
proposal for its trigger characters and if they match the entered
character it will be inserted and context assist started.

Dani
Re: Java content assist: Typing in '(' after the method name automatically selected the method...? [message #246029 is a reply to message #245914] Thu, 19 July 2007 20:08 Go to previous message
Alex Le is currently offline Alex LeFriend
Messages: 649
Registered: July 2009
Senior Member
Daniel Megert wrote:
> AL wrote:
>
>> Hi,
>>
>> In java, when the list of proposals is displayed, if I typed in the
>> '(' character, the current proposal (the highlighted one) from the
>> list of proposal is automatically chosen, and context info popup is
>> shown. How is that done in the Java editor? Thanks.
>
> This is done by the content assistant framework: it asks the selected
> proposal for its trigger characters and if they match the entered
> character it will be inserted and context assist started.
>
> Dani

Yeah, after debugging through the JDT's editor...It turns out that one's
completion proposal must implement the interface
ICompletionProposalExtension in order for Eclipse ask for the trigger
chars from the completion object.
Previous Topic:eclipse and cvs ignore
Next Topic:Marker Annotation for complete line
Goto Forum:
  


Current Time: Tue Oct 01 10:37:49 GMT 2024

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

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

Back to the top