Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "Index.php?title=Dawn Codegen"
Line 1: | Line 1: | ||
− | Dawn Codegen | + | =Dawn Codegen= |
Check out the examples project | Check out the examples project | ||
Line 8: | Line 8: | ||
[[Image:Cvsperspective2.png]] | [[Image:Cvsperspective2.png]] | ||
− | |||
− | |||
Then connect to the repository with the following parameters: | Then connect to the repository with the following parameters: | ||
Line 18: | Line 16: | ||
Then navigate to the CDO incubator as shown below and check the project out. | Then navigate to the CDO incubator as shown below and check the project out. | ||
− | + | [[Image:Cvsperspective3.png]] | |
Now we will generate the code as you would do it for a normal project. This means the model code, the edit plug-in and GMF diagram plug-in. | Now we will generate the code as you would do it for a normal project. This means the model code, the edit plug-in and GMF diagram plug-in. | ||
− | |||
+ | [[Image:GenerateModelCode.png]] | ||
+ | [[Image:GenerateDiagramCode.png]] | ||
Now your workspace contains the plug-ins: the one containing the model code, the edit plug-in and the diagram plug-in. Now right click the the gmf gen model an examine the context menu. You will see an additional entry called “Generate Dawn Genmodel” | Now your workspace contains the plug-ins: the one containing the model code, the edit plug-in and the diagram plug-in. Now right click the the gmf gen model an examine the context menu. You will see an additional entry called “Generate Dawn Genmodel” | ||
− | + | ||
+ | [[Image:Dawncodegen1.png]] | ||
Running this will create a new file called acore.dawngenmodel. This model contains specific information for the Dawn generator. | Running this will create a new file called acore.dawngenmodel. This model contains specific information for the Dawn generator. | ||
− | |||
− | + | [[Image:Dawncodegen2.png]] | |
− | In a final step now right click the Dawn genmodel and choose | + | |
+ | |||
+ | [[Image:Dawngenmodel.png]] | ||
+ | |||
+ | |||
+ | For example it allows to configure the names of the extension classes generated by dawn. | ||
+ | |||
+ | [[Image:Dawngenmodel2.png]] | ||
+ | |||
+ | In a final step now right click the Dawn genmodel and choose "Generate Dawn GMF Fragment" from the context menu. | ||
Now a fragment will be created containing all the specific extensions for your diagram. | Now a fragment will be created containing all the specific extensions for your diagram. | ||
+ | |||
+ | [[Image:Dawnfinish.png]] |
Revision as of 16:24, 22 June 2010
Dawn Codegen
Check out the examples project
First we will check out the Dawn Acore example from the cvs repository. Click Window->Open Perspective->Other… and choose the CVS Perspective.
Then connect to the repository with the following parameters: Host: dev.eclipse.org Repository path: /cvsroot/modeling User: anonymous
Then navigate to the CDO incubator as shown below and check the project out.
Now we will generate the code as you would do it for a normal project. This means the model code, the edit plug-in and GMF diagram plug-in.
Now your workspace contains the plug-ins: the one containing the model code, the edit plug-in and the diagram plug-in. Now right click the the gmf gen model an examine the context menu. You will see an additional entry called “Generate Dawn Genmodel”
Running this will create a new file called acore.dawngenmodel. This model contains specific information for the Dawn generator.
For example it allows to configure the names of the extension classes generated by dawn.
In a final step now right click the Dawn genmodel and choose "Generate Dawn GMF Fragment" from the context menu.
Now a fragment will be created containing all the specific extensions for your diagram.