-
Notifications
You must be signed in to change notification settings - Fork 70
cobigen eclipse_installation
Remark: CobiGen is preinstalled in the devonfw/devon-ide.
-
Eclipse 4.x
-
Java 7 Runtime (for starting eclipse with CobiGen). This is independent from the target version of your developed code.
-
Open the eclipse installation dialog
menu bar → Help → Install new Software… -
Open CobiGen’s updatesite
Insert the update site of your interest into the filed Work with and press Add …-
Stable releases: http://de-mucevolve02/files/cobigen/updatesite/stable/
-
Beta/RC releases: http://de-mucevolve02/files/cobigen/updatesite/experimental/
-
-
Follow the installation wizard
Select CobiGen Eclipse Plug-in → Next → Next → accept the license → Finish → OK → Yes -
Once installed, a new menu entry named "CobiGen" will show up in the Package Explorer’s context menu. In the sub menu there will the Generate… command, which will start the generation wizard of CobiGen.
-
Checkout (clone) your project’s templates folder or use the current templates released with CobiGen (https://github.com/devonfw/tools-cobigen/tree/master/cobigen-templates) and then choose Import -> General -> Existing Projects into Workspace to import the templates into your workspace.
-
Now you can start generating. To get an introduction of CobiGen try the oasp4j templates and work on the oasp4j sample application. There you might want to start with Entity objects as a selection to run CobiGen with, which will give you a good overview of what CobiGen can be used for right out of the box in oasp4j based development. If you need some more introduction in how to come up with your templates and increments, please be referred to the documentation of the context configuration and the templates configuration
Dependent on your context configuration menu entry Generate… may be greyed out or not. See for more information about valid selections for generation.
In general updating CobiGen for eclipse is done via the update mechanism of eclipse directly.
Upgrading from eclipse previous to v3.0.0 to v3.0.0 will take some more attention due to a changed plug-in architecture of cobigen-core and the eclipse integration. Eventually, we were able to provide any plug-in of CobiGen seperately as its own eclipse bundle (fragment), which is automatically discovered by the main CobiGen Eclipse Plug-in after installation.
Disclaimer
If you discover any documentation bugs or would like to request new content, please raise them as an issue or create a pull request. Contributions to this wiki are done through the main repo under the folder documentation.
License
This documentation is licensed under the Creative Commons License (Attribution-NoDerivatives 4.0 International
)