|
Re: Referencing UML profiles and schemaLocation [message #1023925 is a reply to message #1023919] |
Mon, 25 March 2013 13:24 |
|
Hi, Filip,
What URI are you using to load the Test.uml model? The HREFs in this
resource look correct, because the relative path to the profile from a
"Test.uml" resource in the same "model/" folder should just be
"Test.profile.uml".
It looks odd that the URI reported for the ProfileApplication element
is "model/Test.uml". The "model/" prefix shouldn't be there. I
suspect the URI that you specified when loading the Test.uml resource.
HTH,
Christian
On 2013-03-25 13:10:07 +0000, Filip Krikava said:
> Hi,
>
> I used the UML2 4.0.2 to create an UML profile and a UML package to
> which I apply the profile.
>
> I have following layout:
>
> myplugin/model/Test.profile.uml - the profile
> myplugin/model/Test.uml - the package
>
> In the editor all works file. Now, when I try to load it in a standlone
> mode I get an unresolved proxy for the UML profile.
>
> (I do all the registration as suggested in
> http://www.eclipse.org/forums/index.php/mv/msg/151754/)
>
>
> ERROR The feature 'relatedElement' of
> 'org.eclipse.uml2.uml.internal.impl.ProfileApplicationImpl@3804dd1b{model/Test.uml#_OiWn8JVDEeK01KKsnbwhjg}'
> contains an unresolved proxy
> 'org.eclipse.uml2.uml.internal.impl.ProfileImpl@268c858a{Test.profile.uml#_Xt3skJLjEeKmZcJrtpLdOQ}'
> (org.eclipse.uml2.uml.internal.impl.ProfileApplicationImpl@3804dd1b
> (isStrict: false))
>
> ERROR The feature 'target' of
> 'org.eclipse.uml2.uml.internal.impl.ProfileApplicationImpl@3804dd1b{model/Test.uml#_OiWn8JVDEeK01KKsnbwhjg}'
> contains an unresolved proxy
> 'org.eclipse.uml2.uml.internal.impl.ProfileImpl@268c858a{Test.profile.uml#_Xt3skJLjEeKmZcJrtpLdOQ}'
> (org.eclipse.uml2.uml.internal.impl.ProfileApplicationImpl@3804dd1b
> (isStrict: false))
>
> ERROR The feature 'appliedProfile' of
> 'org.eclipse.uml2.uml.internal.impl.ProfileApplicationImpl@3804dd1b{model/Test.uml#_OiWn8JVDEeK01KKsnbwhjg}'
> contains an unresolved proxy
> 'org.eclipse.uml2.uml.internal.impl.ProfileImpl@268c858a{Test.profile.uml#_Xt3skJLjEeKmZcJrtpLdOQ}'
> (org.eclipse.uml2.uml.internal.impl.ProfileApplicationImpl@3804dd1b
> (isStrict: false))
>
> ERROR The feature 'references' of
> 'org.eclipse.emf.ecore.impl.EAnnotationImpl@47503458{model/Test.uml#_OiWn8ZVDEeK01KKsnbwhjg}'
> contains an unresolved proxy
> 'org.eclipse.emf.ecore.impl.EPackageImpl@889ec59{Test.profile.uml#_4KtQgJVCEeK01KKsnbwhjg}'
> (org.eclipse.emf.ecore.impl.EAnnotationImpl@47503458 (source:
> http://www.eclipse.org/uml2/2.0.0/UML))
>
>
> The Test.uml contains following schemaLocation:
>
>
> xsi:schemaLocation="http://i3s.unice.fr/Sigma/examples/uml/TestProfile
> Test.profile.uml#_4KtQgJVCEeK01KKsnbwhjg"
>
>
> When I change it to:
>
>
> xsi:schemaLocation="http://i3s.unice.fr/Sigma/examples/uml/TestProfile
> model/Test.profile.uml#_4KtQgJVCEeK01KKsnbwhjg"
>
>
> it works and I can load it programmatically, but not in the editor. I
> guess I'm missing something elementary, but I can't find it.
>
> Thanks
> Filip
|
|
|
|
Re: Referencing UML profiles and schemaLocation [message #1024007 is a reply to message #1024002] |
Mon, 25 March 2013 16:18 |
|
Hi, Filip,
Indeed, using relative URIs to load models will always cause trouble.
Best to use an absolute URI of some kind.
cW
On 2013-03-25 16:10:07 +0000, Filip Krikava said:
> Hi,
>
> Thanks a lot for fast response. I knew I was missing something obvious.
> I used URI.createFileURI("model/Test.uml") instead of just
> createPlatformResourceURI.
>
> /cheers
> Filip
|
|
|
Powered by
FUDForum. Page generated in 0.04593 seconds