Open GoogleCodeExporter opened 9 years ago
I have been suffering from the same symptoms.
I have been use the following duplicate class definition of EClass in Spray
Core DSL (xx.spray) using the alias.
class SomeEClass alias SomeEClassAlias {
...
}
class SomeEClass alias AnotherSomeEClassAlias {
...
}
And, so I saw that the property was duplicated.
I want to solve this problem.
Do you have a plan to fix this?
Or, Anyone help me ?
Original comment by visual...@prever.co.kr
on 12 Jun 2013 at 6:08
You can adapt the generated plugin.xml where are defined several
<propertySection> which reference each a *.property.*Section class.
I tried to fix the issue in the generator (
SprayGraphitiGenerator.xtend:
def generatePropertySectionForEClassAttributes(Diagram diagram, JavaGenFile
java, EClass eClass, PropertySection ps) {
val keyed = eClass.EAllAttributes.map(att|(att.name -> att.EType.name) ->
att)
val keys = keyed.map[key].toSet
for( attribute : keys.map(key|keyed.filter(entry|entry.key ==
key)).flatten.map[value]) {
generatePropertySectionForAttribute(diagram, java, eClass, attribute, ps)
}
}
), but the fix seems not to work, so the work around above the only way.
Original comment by de.abg.r...@gmail.com
on 12 Jun 2013 at 10:12
Thanks for your response.
Original comment by visual...@prever.co.kr
on 13 Jun 2013 at 12:14
Original issue reported on code.google.com by
de.abg.r...@gmail.com
on 1 Dec 2012 at 9:00Attachments: