[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform] Re: Content Assist question

Barney Kwok wrote:
Our text editor has content assist.
Can someone advice me how to find out the text choice the user has selected in the popup window? I want to enhance my text editor so that when certain text is choosen from Content Assist, the editor will invoke actions accordingly.

What do you mean by "selected"? You mean the user hit the "Enter" key? I believe your ICompletionProposal implementation's 'apply' method should be called (you may have several methods named 'apply', you may want to use sysout to find out which one it is or check the API documentation).


Remy