Skip to main content



      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] Tue, 17 July 2007 21:25 Go to next message
Eclipse UserFriend
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 04:20 Go to previous messageGo to next message
Eclipse UserFriend
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 16:08 Go to previous message
Eclipse UserFriend
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 May 06 02:20:33 EDT 2025

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

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

Back to the top