Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 07:46 Go to next message
Martin Melik-Merkumians is currently offline Martin Melik-MerkumiansFriend
Messages: 104
Registered: March 2016
Senior Member
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 07:51 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14026
Registered: July 2009
Senior Member
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


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Supressing content assist auto activation in DSL comments [message #1840362 is a reply to message #1840361] Tue, 13 April 2021 08:15 Go to previous message
Martin Melik-Merkumians is currently offline Martin Melik-MerkumiansFriend
Messages: 104
Registered: March 2016
Senior Member
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 31 12:00:53 GMT 2021

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

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

Back to the top