cross reference to models in other project not resolved [message #626255] |
Tue, 25 March 2008 12:30 |
Jinhui Messages: 42 Registered: July 2009 |
Member |
|
|
Hi guys,
I have a problem about inter model references: if the type of a Property
is defined in a model in the same project, the type can be resolved. But
if the type is defined in a model in the other Project(i.e. not in the
same project as the referencing model), then the Type can't be resolved,
it was just an eProxy.
the situation:
I have two projects:
--ProjectA
|--java.emx
|--Date (uml::Class)
--ProjectB
|--Models
|--myModel.emx (imported "platform:/resource/ProjectA/java.emx")
|--Class1.attr1,
type="platform:/resource/ProjectA/java.emx#XMI_ID?/Date?"
Now the problem here: if I try to get the type of attr1, it is defined as
a eProxy, so the name of the type of Class1.attr1 is in this case "null".
But interestingly, if I move java.emx into the same Project as the
referencing model, i.e. ProjectB, the the model can be resolved correctly.
I get the name of type of Class1.attr1 == "Date".
Can anyone explain this to me? Does this mean that I have to copy the
referenced Model into every Project that references it???
best Regards!
Jinhui
|
|
|
Powered by
FUDForum. Page generated in 0.02117 seconds