Book a Demo

Author Topic: generate javascript code  from  class diagrams?  (Read 3510 times)

xxkln

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
generate javascript code  from  class diagrams?
« on: September 17, 2010, 12:55:11 pm »
We write a JavaScript code templates to generate JavaScript code form any class diagrams[ch12290]

But,wo met a problem,we can't  get synchronization when you changed  the generated javascript codes manually.

For example:

Generated JavaScript code form 'Shape' class diagrams.

Code: [Select]
Shape = function() {

// add your code
}

When we  add some codes to the place of comment as below.

Code: [Select]
Shape = function() {

// new added code
var  radius;
var str;
}

However,when we generate JavaScript code form the class diagrams again,the codes we added were disappeared.

But the problem in java code templates doesn't happen.

 Can you give us some suggestion for the problem ? Thanks in advance.


Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: generate javascript code  from  class diagrams
« Reply #1 on: September 20, 2010, 09:46:49 am »
Synchronization can't happen unless EA also knows how to reverse engineer the generated code.  EA currently doesn't support user written/customized reverse engineering.