简体   繁体   English

Eclipse web.xml编辑器

[英]Eclipse web.xml editor

I have Helios Service Release 2 installed with WTP tools. 我使用WTP工具安装了Helios Service Release 2。 I created a simple dynamic web project. 我创建了一个简单的动态Web项目。 When I open web.xml, which opens with default XML editor, it shows only two tabs:Design(Standard XML tab) & Source. 当我打开使用默认XML编辑器打开的web.xml时,它只显示两个选项卡:Design(标准XML选项卡)和Source。

When I worked with Rational Software Architect in past, it opened web.xml with tabs like 'Servlet', 'References' so on to let you easily edit various parts of web.xml in visual point & click manner. 当我以前使用Rational Software Architect时,它使用'Servlet','References'等标签打开web.xml,以便您以可视化点击方式轻松编辑web.xml的各个部分。

Is this possible with Eclipse? 这可能与Eclipse有关吗?

btw, I tried 'Open with' menu option but couldn't find appropriate editor for web.xml 顺便说一下,我尝试了'打开'菜单选项但找不到合适的web.xml编辑器

Thanks 谢谢

You can install JBoss tools through Eclipse marketplace to have a complete web.xml editor. 您可以通过Eclipse marketplace安装JBoss工具,以获得完整的web.xml编辑器。 You don't have to install all the plugins. 您不必安装所有插件。 In my case I just installed the "Context and Dependency Injection Tools" 在我的情况下,我刚刚安装了“上下文和依赖注入工具”

Eclipse currently does not have this functionality. Eclipse目前没有此功能。 IBM did not donate this part of the tooling from Rational Software Artifact when it seeded Eclipse Web Tools Project. IBM在推出Eclipse Web Tools Project时没有从Rational Software Artifact中捐赠这部分工具。

Note that there is an effort that is just getting started to implement these editors at Eclipse, but you are not going to be able to use the fruit of that work until Juno release in the Summer of 2012. 请注意,在Eclipse上开始实现这些编辑器的努力已经开始,但是在2012年夏天Juno发布之前,您无法使用该工作的成果。

In the meantime, you will need to use plain XML editor or seek third-party solutions, such as MyEclipse. 与此同时,您需要使用纯XML编辑器或寻求第三方解决方案,例如MyEclipse。 Note that MyEclipse is not compatible with Eclipse WTP. 请注意,MyEclipse与Eclipse WTP不兼容。 It is separate tooling stack for web app development. 它是用于Web应用程序开发的独立工具堆栈。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM