Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » For each type a ModelInferrer?
For each type a ModelInferrer? [message #1805447] Mon, 15 April 2019 12:06
Dimg Cim is currently offline Dimg CimFriend
Messages: 40
Registered: December 2015
Member
Hello together,

I wrote a dsl to generate an user interface in JavaFX and for each control, I have a huge method in the ModelInferrer, can I separate each control in a different ModelInferrer?

Actually in my ModelInferrer looks like

class JavaFXDslJvmModelInferrer extends AbstractModelInferrer {

  def dispatch void infer(ProjectFX....){
 // 300 Lines of code
}

  def dispatch void infer(TableViewFX....){
 // 300 Lines of code
}

  def dispatch void infer(TreeViewFX....){
 // 300 Lines of code
}

... other Controls, Custom Controls, etc.

}


Are there any patterns to separate this? What is the best way to manage all of this? I think in one file isn't the right way.

Are there possibilities to have more ModelInferrers in one project? And how to register it?

Best regards
lam

[Updated on: Mon, 15 April 2019 12:11]

Report message to a moderator

Previous Topic:Load a xtext-file to Xtext Web
Next Topic:Generating duplicate method bodies in AbstractModelInferrer
Goto Forum:
  


Current Time: Mon Aug 19 07:53:52 GMT 2019

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

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

Back to the top