How does the Eclipse editor work to enable code completion? For example, within the XML editor for Hibernate property files, if I ctrl-space within a tag, a list of possible value relevant to hibernate will show up.
我知道 XML 编辑器已预先配置为可以理解 xml 标签,但是特定于特定框架的标签又如何呢? Eclipse 如何知道这一点?
我相信 Eclipse XML 编辑器从任何引用的 DTD 获取内容辅助信息,或者与 XML 文件关联的 XMLSchema 信息。尝试这个实验:删除文件开头的 DOCTYPE 条目,看看内容辅助是否仍然有效。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)