[英]What is the JavaEMFNature <nature> for an Eclipse project?
I am preparing to build a pre-existing Java project in NetBeans. 我准备在NetBeans中构建一个预先存在的Java项目。 I am reviewing the pre-existing build-related files to confirm that I can safely build directly from the source files. 我正在检查预先存在的与构建相关的文件,以确认我可以直接从源文件中安全地构建。
There is a .project
file in the root directory. 根目录中有一个.project
文件。 It is a short file, so I include it all here: 这是一个简短的文件,所以我在这里包括它:
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>qrcode</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.jem.beaninfo.BeanInfoNature</nature>
</natures>
</projectDescription>
For this question, I would like to know, specifically, what the JavaEMFNature <nature>
is. 对于这个问题,我想特别了解JavaEMFNature <nature>
是什么。 I cannot find any reference to information about it anywhere. 我无法在任何地方找到任何有关它的信息。
A secondary, but related, question is: Am I correct that regardless of what JavaEMFNature
is, that it is not intended to be executed (as currently specified in the .project
file)? 一个次要的,但相关的问题是:我是否正确无论JavaEMFNature
是什么,它都不打算执行(如.project
文件中当前指定的那样)?
Another secondary question: What are the other two <natures>
, and what is the purpose of the <buildCommand>
( org.eclipse.jdt.core.javabuilder
)? 另一个次要的问题:什么是其他两个<natures>
,什么是目的<buildCommand>
org.eclipse.jdt.core.javabuilder
)?
I raise these questions primarily to confirm that I am safe to ignore this .project
file as I re-create the project within NetBeans, but I also ask in order to learn (for future reference). 我提出这些问题主要是为了确认我可以安全地忽略这个.project
文件,因为我在NetBeans中重新创建项目,但我也要求学习(以供将来参考)。
JavaEMFNature is an internal class of JEM, which is a model of the Java Language, implemented in terms of EMF . JavaEMFNature是JEM的内部类,它是Java语言的模型,以EMF的形式实现 。 As far as I know it's also used by WTP for JSP/JSF model. 据我所知,它也被WTP用于JSP / JSF模型。 It's part of JEETools project and it's responsible for all sorts of things, like getting source paths and containers, library paths, updating classpath for the project and so on. 它是JEETools项目的一部分,它负责各种各样的事情,比如获取源路径和容器,库路径,更新项目的类路径等等。
It's all in the source code if you would like to go through it... 如果您想通过它,那么这些都在源代码中 ...
我认为EMF代表Eclipse Modeling Framework http://www.eclipse.org/modeling/emf/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.