Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » ContentAssistant help
ContentAssistant help [message #309932] Mon, 13 November 2006 06:01 Go to next message
Eclipse UserFriend
Hi all, hope this is the right forum for my problem



I'm searching information on content assistant



I have a plug-in with a Text Viewer...

I have defined a ContentAssistend with a content assist processor ...



I'm able to get a list of suggestion depending on what I have typed before



So, if I have typed "String" I can get a suggestion list saying ...

String(char[] value, int offset, int count)

String(int[] codePoints, int offset, int count)

String.copyValueOf(char[] data)




Now ... once the popup is closed I got the whole word replaced with the
suggested selected line.



i.e.

String --> String.copyValueOf(char[] data)



What can I do to interact with the returned suggestion?

I would like to see

"String" --> "String.copyValueOf("



Thanks for any help or example.



Kar
Re: ContentAssistant help [message #309945 is a reply to message #309932] Mon, 13 November 2006 08:27 Go to previous message
Eclipse UserFriend
KarSc wrote:

>Hi all, hope this is the right forum for my problem
>
>
>
>I'm searching information on content assistant
>
>
>
>I have a plug-in with a Text Viewer...
>
>I have defined a ContentAssistend with a content assist processor ...
>
>
>
>I'm able to get a list of suggestion depending on what I have typed before
>
>
>
>So, if I have typed "String" I can get a suggestion list saying ...
>
> String(char[] value, int offset, int count)
>
> String(int[] codePoints, int offset, int count)
>
> String.copyValueOf(char[] data)
>
>
>
>
>Now ... once the popup is closed I got the whole word replaced with the
>suggested selected line.
>
>
>
>i.e.
>
>String --> String.copyValueOf(char[] data)
>
>
>
>What can I do to interact with the returned suggestion?
>
>I would like to see
>
>"String" --> "String.copyValueOf("
>
>
The proposal is responsible to create what's inserted, see
ICompletionProposal.apply(*)

Dani

>
>
>Thanks for any help or example.
>
>
>
>Kar
>
>
>
>
>
>
Previous Topic:project explorer exception
Next Topic:Syntax colring improvement
Goto Forum:
  


Current Time: Mon Jul 14 16:12:19 EDT 2025

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

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

Back to the top