Content Assist shortcut - am I losing my mind? [message #332224] |
Mon, 13 October 2008 11:22  |
Eclipse User |
|
|
|
I've created a custom editor, and an IContentAssistProcessor that's been
set for all the appropriate partition types. Auto-activation works fine,
but Ctrl+Space doesn't trigger code completion.
Is there something I need to do to configure this to work? If not, what
could I have done to *stop* it from working?
Adrian
|
|
|
Re: Content Assist shortcut - am I losing my mind? [message #332225 is a reply to message #332224] |
Mon, 13 October 2008 12:11   |
Eclipse User |
|
|
|
Adrian Jackson wrote:
> I've created a custom editor, and an IContentAssistProcessor that's
> been set for all the appropriate partition types. Auto-activation
> works fine, but Ctrl+Space doesn't trigger code completion.
>
> Is there something I need to do to configure this to work? If not,
> what could I have done to *stop* it from working?
Yes you need to register the action for the command. Look at
org.eclipse.ui.texteditor.ContentAssistAction and how it is setup by the
Java editor for example.
Dani
>
> Adrian
>
|
|
|
Re: Content Assist shortcut - am I losing my mind? [message #332226 is a reply to message #332225] |
Mon, 13 October 2008 12:16   |
Eclipse User |
|
|
|
Daniel Megert wrote:
> Adrian Jackson wrote:
>> Is there something I need to do to configure this to work? If not,
>> what could I have done to *stop* it from working?
> Yes you need to register the action for the command. Look at
> org.eclipse.ui.texteditor.ContentAssistAction and how it is setup by the
> Java editor for example.
Also, this FAQ may help.
http://wiki.eclipse.org/FAQ_How_do_I_add_Content_Assist_to_m y_editor%3F
Dani, are there any plans to create a command/handler/something that
won't require people to pass in their own ResourceBundles? I think this
will help reduce duplicated code and make localization easier.
Regards,
Rem
|
|
|
Re: Content Assist shortcut - am I losing my mind? [message #332227 is a reply to message #332226] |
Mon, 13 October 2008 12:18   |
Eclipse User |
|
|
|
Remy Chi Jian Suen wrote:
> Daniel Megert wrote:
>> Adrian Jackson wrote:
>>> Is there something I need to do to configure this to work? If not,
>>> what could I have done to *stop* it from working?
>> Yes you need to register the action for the command. Look at
>> org.eclipse.ui.texteditor.ContentAssistAction and how it is setup by
>> the Java editor for example.
>
> Also, this FAQ may help.
> http://wiki.eclipse.org/FAQ_How_do_I_add_Content_Assist_to_m y_editor%3F
>
> Dani, are there any plans to create a command/handler/something that
> won't require people to pass in their own ResourceBundles?
No plans but if there's a bug I might consider ;-)
Dani
> I think this will help reduce duplicated code and make localization
> easier.
>
> Regards,
> Rem
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03134 seconds