Book a Demo

Author Topic: Code Generation with Eclipse Integration  (Read 2861 times)

Johan Van Noten

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Code Generation with Eclipse Integration
« on: October 20, 2011, 05:01:20 am »
Environment:
* Windows 7 x64
* Install Eclipse Indigo SR1 + CDT
* Install EA 9.1 (trial) and Eclipse Integration

Scenario:
* Start Eclipse
* Create new CDT example project (Hello World)
* (Info: it doesn't compile since I didn't install a toolchain yet. I suppose this is not required.)
* Create a integration connection to a newly created EA model
* Create a package, create a class in it with some attributes/operations.
* Link the package to the Eclipse project.
* Generate code. This works and shows the code as expected.
* Add a statemachine below the class and add some states etc.

Problem:
* Re-generate code: nothing changes. The class doesn't contain the code for the statemachine.

Work-around:
* Open the model in EA instead of through the Eclipse integration.
* Re-gerenate the code (denying opening Eclipse) chosing to overwrite (no sync)
  (just for verification, this step is not necessary)
* The code is regenerated, but without the SM (same behaviour as inside Eclipse)
* Remove the generated code by means of Windows Explorer
* Regenerate the code with the same settings.
* Now it contains the state machine.

I tried the same in Eclipse: remove the code an re-generate, but that doesn't work.

Is this issue reproducable by anyone?
I didn't mention all steps in detail, so if more info is required, please let me know.

Johan