xText:doGenerate 方法未被调用 [英] xText: doGenerate method is not called

查看:38
本文介绍了xText:doGenerate 方法未被调用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 xText(版本 2.10.0)开发 DSL,我还想添加一个代码生成器.

I'm developing a DSL using xText (version 2.10.0) and i would like to add also a code generator.

运行插件时,据我所知,代码生成器应该在文件发生变化时自动调用.这不会发生.

When running the plug-ins, as I understood, the code generator should be invoked automatically upon a change in a file. This is not happening.

使用调试器时,我注意到没有调用 doGenerate 函数.

Using a debugger I've noticed that the doGenerate function is not invoked.

我该怎么做才能自动调用 doGenerate 函数?

What can I do so the doGenerate function will be invoked automatically?

谢谢.

推荐答案

您的文件需要正确的文件扩展名(区分大小写) 项目需要 xtext 性质并且需要启用自动构建.然后将在保存无错误模型时调用生成器

Your file needs the right file extension (case sensitive) the project needs xtext nature and build automatically needs to be enabled. Then the generator will be called upon save of error free models

这篇关于xText:doGenerate 方法未被调用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆