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