Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Content Assist shortcut - am I losing my mind?
Content Assist shortcut - am I losing my mind? [message #332224] Mon, 13 October 2008 11:22 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: Content Assist shortcut - am I losing my mind? [message #332229 is a reply to message #332227] Mon, 13 October 2008 12:23 Go to previous messageGo to next message
Eclipse UserFriend
Daniel Megert wrote:
> 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 ;-)
See: https://bugs.eclipse.org/bugs/show_bug.cgi?id=138370

Dani
>
> Dani
>> I think this will help reduce duplicated code and make localization
>> easier.
>>
>> Regards,
>> Rem
Re: Content Assist shortcut - am I losing my mind? [message #332231 is a reply to message #332225] Mon, 13 October 2008 13:36 Go to previous message
Eclipse UserFriend
Daniel Megert wrote:
> 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.

Suddenly it all becomes clear - thanks for the pointer.

Adrian
Previous Topic:How to add an Annotation (visible in TextEditor and Childs) to a File?
Next Topic:Good resources about implementing Capabilities/Activities?
Goto Forum:
  


Current Time: Sun Feb 16 20:03:43 GMT 2025

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

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

Back to the top