Skip to content

Commit

Permalink
Documentation E2E POC Section (Code First and Contrct First) (#1368)
Browse files Browse the repository at this point in the history
* test gitignore fork

* HowTO cobigen E2E - Code First

* HowTO cobigen E2E - Code First + Contract First

* HowTO cobigen E2E - Code First + Contract First

* HowTO cobigen E2E - Code First + Contract First

* HowTO cobigen E2E - Code First + Contract First

* HowTO cobigen E2E - Code First + Contract First

* HowTO cobigen E2E - Code First + Contract First

* HowTO cobigen E2E - Code First + Contract First

* HowTO cobigen E2E - Code First + Contract First

Co-authored-by: scerroni <stefano.cerroni@capgemini.com>
Co-authored-by: SchettlerKoehler <62466958+SchettlerKoehler@users.noreply.github.com>
  • Loading branch information
3 people committed Jul 13, 2021
1 parent 0e3b52a commit 13aa12f
Show file tree
Hide file tree
Showing 28 changed files with 615 additions and 336 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Expand Up @@ -30,3 +30,7 @@ cobigen-eclipse/cobigen-eclipse-test/screenshots
.pydevproject
objectdb
.mypy_cache

#Intellij
.idea
*.iml
1 change: 1 addition & 0 deletions documentation/_Sidebar.asciidoc
Expand Up @@ -14,6 +14,7 @@
* link:howto_create-external-plugin.asciidoc[External plugin creation]
* link:howto-devonfw-ide-CobiGen-PoC-E2E.asciidoc[End to End POC Code generation using Entity class]
* link:howto-devonfw-CobiGen-OpenAPI.asciidoc[End to End POC Code generation using OpenAPI]
* link:howto-devonfw-adapt_template.asciidoc[Adapt Template from Cobigen]

=== Configuration
* link:cobigen-core_configuration[CobiGen Configuration]
Expand Down
467 changes: 290 additions & 177 deletions documentation/howto-devonfw-CobiGen-OpenAPI.asciidoc

Large diffs are not rendered by default.

38 changes: 38 additions & 0 deletions documentation/howto-devonfw-adapt_template.asciidoc
@@ -0,0 +1,38 @@
:doctype: book
:toc:
toc::[]
= Adapt Templates from Cobigen

== Adapt CobiGen_Templates

After following this tutorial, you will have the CobiGen_Templates downloaded on your local machine. To import these templates you need to do the following:

Right click in any part of the package explorer, then click on CobiGen -> Adapt templates

image:images/howtos/e2e_gen/image56.png[]

Click _Ok_:

image:images/howtos/e2e_gen/image57.png[]

Now the CobiGen_Templates project will be automatically imported into your workspace, as shown on the image below:

image:images/howtos/e2e_gen/image58.png[]

image:images/howtos/e2e_gen/image59.png[]

Now you just need to change the Java version of the project to JRE 1.8. Right click on the JRE system library, and then on _Properties:_

image:images/howtos/e2e_gen/image60.png[]

Now change the version to Java 1.8
image:images/howtos/e2e_gen/image61.png[]

Now you have successfully imported the CobiGen templates. If you want to edit them, you will find them in the folder _src/main/templates._ For instance, the Java templates are located here:

image:images/howtos/e2e_gen/image62.png[]

Now you can adapt the templates as much as you want. Documentation about this can be found on:

[source, URL]
https://github.com/devonfw/tools-cobigen/wiki/Guide-to-the-Reader

0 comments on commit 13aa12f

Please sign in to comment.