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: 113
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: 14492
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: 113
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: Thu Jun 01 15:48:23 GMT 2023

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

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

Back to the top