Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Customizing content proposal in Xtext 2.20 for web editors
Customizing content proposal in Xtext 2.20 for web editors [message #1821163] Thu, 06 February 2020 12:53 Go to next message
kolchanov Mising name is currently offline kolchanov Mising nameFriend
Messages: 20
Registered: October 2011
Junior Member
I want to implement content proposal for xtext web editor and found old topic
https://stackoverflow.com/questions/47005235/customizing-content-proposal-in-xtext-for-web-editors

In xtext 2.20 MyDslUiModule has not
bindIdeContentProposalProvider and IdeContentProposalProvider has not implement IContentProposalProvider.

How to implement web editor proposal with xtext 2.20?
Re: Customizing content proposal in Xtext 2.20 for web editors [message #1821165 is a reply to message #1821163] Thu, 06 February 2020 12:56 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
For we you should customize the web (or the ide,) module
You also can create a bind method in any module
See the documentation section on dependency injection

p.s. the stackoverflow uses xtend. here is the java

public Class<? extends IdeContentProposalProvider> bindIdeContentProposalProvider() {
return MyDslIdeContentProposalProvider.class;
}


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de

[Updated on: Thu, 06 February 2020 18:05]

Report message to a moderator

Previous Topic:Documentation generation based on grammar
Next Topic:Xtext prefences pages
Goto Forum:
  


Current Time: Sat Apr 20 01:24:54 GMT 2024

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

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

Back to the top