Create the ecore and genmodel files from the XSD file.
从xsd文件中创建ecore和genmodel文件。
Select the ecore directory for the genmodel file, and click Next.
为genmodel文件选择ecore目录,然后点击Next。
You can also specify constraints based on the generated Ecore model.
你同样可以根据生成的Ecore模型指定约束。
Once you have imported the Ecore metamodel, you are ready to extend it.
导入Ecore元模型之后,就可以对其进行扩展了。
This helped to distinguish an extended model from a 'first level' Ecore model.
这有助于区别扩展了的模型与‘初级的’ecore模型。
A Jazz component can declare new item types, specified as classes in their Ecore model.
Jazz组件可以声明新的项类型,这些项类型在UML中指定为类。
In our example, this can translate to an Ecore model that has a set of children packages.
在本文的例子中,可将它转换为拥有一组子包的Ecore模型。
RSA allows you to export an RSA model in other model formats, such as Ecore or UML2 models.
RS A允许您导出一个其他模型格式的RSA模型,比如ecore或者UML2模型。
The storage model is derived directly from the logical model, and is also an EMF Ecore model.
存储模型直接派生自逻辑模型。
Locate the Ecore file that was exported from RSA before utilizing the appropriate Browse button.
在利用适当的Browse按钮之前,定位从RSA中导出的Ecore文件。
The navigator we have created will display Ecore models, but what about other types of EMF models?
我们所创建的导航器将显示Ecore模型,但是其他类型的EMF模型怎么办?
Continue defining the other EClasses in the EcoreX model by subclassing Ecore objects when necessary.
根据需要对Ecore对象划分子类,在EcoreX模型中继续定义其他EClass。
Browse your file system to load your ecore file, which should automatically fill in the generator model name.
从文件系统中加载ecore文件,它将自动填充generator的模型名。
For example, we can make our navigator provide a display for generator models, Ecore models, UML models, etc.
例如,我们可以让导航器显示生成器模型、Ecore模型、uml模型等。
The first three import statements declare the UML2 model, the Modeler XML schema, and the EMF Ecore model, respectively.
前三个import语句分别声明uml2模型、ModelerXML模式和EMFEcore模型。
Add a folder named "model" to the new project and create two additional folders under "model" named "ecore" and "schema".
向新项目添加一个名为“model”的文件夹,并在名为“ecore”和“schema”的“model”之下创建其他两个文件夹。
If everything has gone right, the mysql.ecore and mysql.genmodel files are now generated in the ecore folder of your project.
如果一切顺利,那么在项目的ecore文件中就会生成mysql .ecore与mysql .genmodel文件了。
The ecore and ws packages are some of the extensions shipped with MTF that provide default support for files and EMF resources.
MTF包含一些对文件和EMF资源提供默认支持的扩展包,ecore和ws就是其中两个。
With a standalone Ecore model, you want to create a complete EMF model that you can fully utilize during development using EMF.
利用一个标准的Ecore模型,您希望创建一个完全的EMF模型,以便在运用EMF的开发过程中充分利用它。
By the end of this article, we will have a viewer plug-in that can be used to navigate an Ecore model (see right side of Figure 1).
在本文最后,我们将拥有一个查看器插件,用于浏览ecore模型(见图1右侧)。
If we run this project again as outlined above, we will see that we can now navigate through Ecore and Generator EMF models (see Figure 8).
如果我按上面介绍的方法重新运行此项目,我们将发现现在可以浏览ecore和GeneratorEMF模型(见图8)。
Typically, EMF project resources — EMF Ecore models, for example — are displayed as single objects in a viewer (see left side of Figure 1).
通常,EMF项目资源 — 如 EMFEcore模型 —作为查看器中的单个对象进行显示(见图 1的左侧)。
To test that changes in the Ecore model are being reflected in the viewer, we will simply rerun our application and start making some changes.
要测试ecore模型中的更改在查看器中得到了反映,我们将只需重新运行应用程序并开始做出更改即可。
This transformation can be used to develop an EMF model, but it is not ideal since it requires an additional transformation from UML2 to Ecore.
这一转换过程能够被用来开发EMF模型,但这种做法并不理想,因为它需要一个从UML2到Ecore的额外转换过程。
db2.ecore, schema.ecore, tables.ecorem, and other SQL ecore models are listed as Ecore meta-models for the report design, as shown in Figure 10.
您将看到列出 sqlmodel.ecore、db2.ecore和 Ecore.ecore,它们作为报告设计的 Ecore元模型,如图 7 所示。
The Ecore types are partially supported: they can all be specified, and Rational Software Architect will provide read capability for all of them.
Ecore类型只是被部分支持:他们都可以被指定,并且RationalSoftware Architect会提供读取的功能。
Since we currently only want to navigate an Ecore model, we can make this a simple expression that will check the extension of the resource to be Ecore.
因为目前我们只希望浏览ecore模型,所以可以将其处理为一个简单的表达式,用于检查资源的扩展是否为Ecore。
You also need to import the ecore, ws, and util utility packages, used to load the models (as explained in the next step) and import special constructs.
你还需要导入ecore,ws和ut il实用程序包,它们被用来加载模型(将在下一步中作解释)并导入特殊结构。
We make our content provider react to changes in the model by allowing it to listen for changes in the model file resource (the Ecore file in our case).
我们让内容提供程序响应模型中的更改的方法是,允许其侦听模型文件资源中的更改(本例中指的是Ecore 文件)。
The transformation to Ecore from RSA is the most optimized way to create an EMF model, as it can be used directly from the EMF model and Project Creation wizard.
从RSA到Ecore的转换是创建一个EMF模型的最佳途径,因为可以从“EMF模型和项目创建”向导中直接使用它。
应用推荐