|
|
|
Re: Using instances inside model from another model [message #646046 is a reply to message #645989] |
Tue, 21 December 2010 12:22   |
Eclipse User |
|
|
|
Stefan,
Comments below.
Stefan Mijatov wrote:
> When I open model in e-core editor, in properties tab for the
> referenced attribute of some element, type which is say EDataType, is
> not loaded properly.
> That is the name is missing, and instead of being 'EDataType String'
> the editor shows only 'EDataType'.
Yes, that sounds like an unresolved proxy.
> I am keeping primitive types in separate model as i described in
> previous post.
> Maybe it has something to do with the proxy resolving as you say, but
> I don't know what I have to do in order for this to work...
When there's a proxy, any normal attempt to access it will try to
resolve it.
> How do I "make" editor to resolve proxies?
It will do that on its own.
> And not only editor, I have this problem also when I am running some
> qvt transformation for this type of situation!? (and also xpand :? )
As I mentioned already, any attempt to resolve a proxy (and it's hard to
prevent such attempts) will cause a resource to be loaded. So if you
have broken proxies you should see a resource in the resource set with
the URI of that broken proxy. Isn't that the case?
|
|
|
|
|
|
|
|
|
|
|
|
Re: Using instances inside model from another model [message #646400 is a reply to message #646388] |
Thu, 23 December 2010 12:51   |
Eclipse User |
|
|
|
Stefan,
Oh sorry, the names are very similar...
So in the picture you're showing, you've invoked Validate and gotten the
diagnostic about an unresolved proxy that you described? Can you show
me the lines of the XML with the serialized reference that's not
resolving. Is the corresponding EReference in which this reference
appears one that is a non-containment reference with resolveProxies set
to true? Can you open the resource being referenced directly in an
editor without any problems?
Stefan Mijatov wrote:
> As much as I can understand, the resource that is needed is
> OrganizacijaEntities.xmi, and it is not being loaded into resource set
> at all. Furthermore, there is 7 eClassifiers in
> OrganizacijaEntities.xmi and the reference to them is by position in
> xmi starting from zero (0, 1, 2...6). My conclusion is that some how
> editor is having trouble to resolve this references, and I don't know
> what is the reason.
>
> Anyway, thank you for the effort in trying to help me.
|
|
|
|
|
Re: Using instances inside model from another model [message #646488 is a reply to message #646468] |
Sat, 25 December 2010 08:08  |
Eclipse User |
|
|
|
EType reference is not containment, and Resolve Proxies for EType is set to true, I have checked. I have to confess that I don't know how to debug e-core editor?
Doesn't matter any more, most probably the problem is somewhere in my meta-models since I have three of them, each one extending the other. That is, I have ejb3 which extends java which extends ocore which is instance of e-core meta-meta-model. So the source of my bug is who knows where... I am giving up since I am not obligated to make this work for my MSc diploma work.
Anyway, thank you very much for trying to help.
|
|
|
Powered by
FUDForum. Page generated in 0.17376 seconds