Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Supressing content assist auto activation in DSL comments(content assist auto activation supression)
Supressing content assist auto activation in DSL comments [message #1840360] Tue, 13 April 2021 03:46 Go to next message
Eclipse UserFriend
Hello,

I activated auto activation characters in my editor via
    @Override
    public void configure(Binder binder) {
        super.configure(binder);
binder.bind(String.class).annotatedWith(com.google.inject.name.Names.named((XtextContentAssistProcessor.COMPLETION_AUTO_ACTIVATION_CHARS))).toInstance(".");
  }


My problem now is, that the content assist is not triggered by the configured characters in comment sections in my DSL. Is it possible to suppress this behavior?

Thanks for your help
Best regards,
Martin
Re: Supressing content assist auto activation in DSL comments [message #1840361 is a reply to message #1840360] Tue, 13 April 2021 03:51 Go to previous messageGo to next message
Eclipse UserFriend
HI i have no idea on this. i assume you have to have a look into eclipses code yourself.

maybe you can customize
org.eclipse.jface.text.contentassist.new IContentAssistProcessorExtension() {...}.isCompletionProposalAutoActivation(char, ITextViewer, int)
somehow, although it looks quite internal
Re: Supressing content assist auto activation in DSL comments [message #1840362 is a reply to message #1840361] Tue, 13 April 2021 04:15 Go to previous message
Eclipse UserFriend
Hi,

thanks for the fast reply. I will take a look into it, but not sure if it is really worth it then ':-)

Best regards,
Martin
Previous Topic:Compute offset from position (line,col)
Next Topic:Qualified Name ID.ID....KEYWORD
Goto Forum:
  


Current Time: Sat Jul 05 07:32:45 EDT 2025

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

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

Back to the top