Generalization from EClass in another Eclipse Project [message #628198] |
Mon, 18 January 2010 17:34 |
No real name Messages: 14 Registered: December 2009 |
Junior Member |
|
|
Hi NG,
once more I'm a little bit confused. Context:
I have got an Eclipse project de.sth.common. It contains a folder with
my models (common.uml, common.umlclass etc.). Within this model there's
a class BaseEntity. There's common.genmodel generating the packages
de.sth.common, de.sth.common.impl.
Now I have another Eclipse project de.sth.app with its own model
directory (app.uml, app.umlclass etc.). Project de.sth.common is
included in java build path under 'Required projects'. Within this
project (de.sth.app) there's another class SpecializedEntity, that
should be a generalization of BaseEntity.
Also within this project there's a app.genmodel generating the packages
de.sth.app, de.sth.app.impl.
How can I achieve this generalization without generating the already
existing implementation classes from de.sth.common.impl?
More precisly:
1) I create a Class stereotyped as EClass, Instance Class Name =
de.sth.common.BaseEntity -> no interface is generated by genmodel, but
an implementation class de.sth.app.impl.BaseEntityImpl (with a lot of
errors in the factories (new operation is, of course, not available)
2) I create a PrimitiveType stereotyped as EDataType, Instance Class
Name = see above. Great: No interface and no implementation class is
generated, BUT this primitive type is not generalizable
3) Element Import of common::BaseEntity -> genmodel now needs reference
to common.uml and generates the hole tree of common.uml in my new
project once more
4) DataType stereotyped as EClass or EDataType -> see 1)
5) Interface stereotyped as EClass -> see 2)
I would be very grateful for your help, thanks a lot
|
|
|
Powered by
FUDForum. Page generated in 0.02625 seconds