Open davetcc opened 4 hours ago
OK, I have a question. If we require users to copy the starter project and we assume the project is there, otherwise the code fails, why can't we just adopt the starter project as a template?
TcMenu generator can fetch the starter project zip file or get it through other means, then generate the menu tree and we have a workable project without the need to do the manual steps.
Is your feature request related to a problem? Please describe.
Note this is for Embedded Java cases only, no changes here are for the existing C++/Arduino generator.
Now the Embedded Java code generator for RaspberryPI is too complicated, and inflexible. It would be far better to provide the starting point application and then have tcMenu Designer able to alter the
MenuDef
menu tree file including with menu in menu definitions, and the file containing callbacks. All other files should be managed outside of tcMenu by the developer. This is similar to the C++ Arduino workflow.Describe the solution you'd like
To have a simplified flow for the Embedded Java use cases that do not risk breaking Java code each run.
Additional context
All Embedded Java code generation should be based on the starter project, following the following pattern.
menudef
file containing the menu tree.menudef
filecontroller
file, create new entries at the bottom for any that are missing.