Eclipse XSD 编辑器

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/7386336/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 20:30:57  来源:igfitidea点击:

Eclipse XSD editor

eclipsexsdeclipse-indigo

提问by hpique

How do you launch or install the Eclipse XSD editor?

如何启动或安装 Eclipse XSD 编辑器?

According to thisit seems it should work out-of-the-box. I created the XMLExamplesproject and when I open Catalogue.xsdEclipse treats it as a text file. If I choose Open With > Other...there's no XSD editor on the list.

根据这个看来它应该工作外的开箱。我创建了该XMLExamples项目,当我打开Catalogue.xsdEclipse 时将其视为文本文件。如果我选择Open With > Other...列表中没有 XSD 编辑器。

I'm using Eclipse Indigo (3.7) on Mac OS X Lion.

我在 Mac OS X Lion 上使用 Eclipse Indigo (3.7)。

回答by hpique

Apparently the XSD editor wasn't included in my package (Eclipse IDE for Java Developers). I added it using:

显然 XSD 编辑器没有包含在我的包中(Java 开发人员的 Eclipse IDE)。我添加它使用:

Help > Install New Software...

帮助 > 安装新软件...

Work with (enter your Eclipse version, here Photon):

使用(输入您的 Eclipse 版本,此处为 Photon):

Photon - http://download.eclipse.org/releases/photon

光子 - http://download.eclipse.org/releases/photon

Filter by "XML" - as "XSD" wouldn't return the XSD editor (eventually untick "Hide items that are already installed" in case it's already installed):

按“XML”过滤 - 因为“XSD”不会返回 XSD 编辑器(如果已经安装,最终取消勾选“隐藏已安装的项目”):

Web, XML, Java EE and OSGi Enterprise Development

Web、XML、Java EE 和 OSGi 企业开发

And then:

进而:

Eclipse XML Editors and Tools

Eclipse XML 编辑器和工具

Example with Photon:

光子示例:

enter image description here

在此处输入图片说明

回答by Barend

Which Eclipse packagedid you install? The XSD editor isn't included with all of them. If you click on "details" for any package, you can see the included features. The one you're looking for is org.eclipse.wst.xml_ui.feature.

您安装了哪个Eclipse 包?XSD 编辑器并不包含在所有这些中。如果您单击任何包的“详细信息”,您可以看到包含的功能。您正在寻找的是org.eclipse.wst.xml_ui.feature

回答by Zeus

You can go alternatively to eclipse market place(Help>Eclipse Market place)and search for XSD Editor, you will see the one provided by The eclipse foundationwhich will be like the following. I already have it installed, so it is asking me to update/uninstall. If you have it as well, then it will show you the same screenshot.

您也可以前往eclipse market place(Help>Eclipse Market place)并搜索XSD Editor,您将看到 提供The eclipse foundation的内容如下所示。我已经安装了它,所以它要求我更新/卸载。如果你也有它,那么它会向你显示相同的屏幕截图。

enter image description here

在此处输入图片说明