Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法以编程方式修改 genmodel(使用 EMF ANT 任务创建)?创作后我不想再自己碰它了。
以编程方式修改它是什么意思?如果您的意思是使用源模型的新元素来容纳它,您可以使用 ecore2genmodel 应用程序(在 Ant 中不可用);或使用 reconcileGenModel="reload" 参数重新运行现有的 ant 任务。
如果您的意思是设置 genmodel 属性(例如类名约定、EMF 特征生成设置),我建议手动设置它们。那样没有坏处,它旨在手动定制。