[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.uml2] Re: PackageNotFoundException

Kenn,

Thank you very much for all your help. I did it the correct way: extended 
point org.eclipse.emf.ecore.uri_mapping and used pathmap, just like UML2 
resources.

It is working perfectly right now.

Best regards,
-- 
Ricardo Giacomin

"Kenn Hussey" <khussey@xxxxxxxxxx> wrote in message 
news:eh02t6$e6k$1@xxxxxxxxxxxxxxxxxxxx
> Ricardo,
>
> No, the load(URI) method is not correct. You should not be registering a 
> generic resource factory implementation against the "uml" extension, but 
> rather the UML2 one (UMLResourceFactoryImpl). However, if you are indeed 
> running this from within Eclipse, this registration isn't even necessary 
> since it is done automatically by the org.eclipse.uml2.uml plug-in via an 
> extension.
>
> When you're trying to load your model, are you sure that the profiles are 
> located in the expected relative location? Based on the snippet you 
> posted, it looks like the model expects them to be under a 
> 'com.vetta.mad.profile' folder located in the parent folder... I suspect 
> that this is not the case. One way to simplify relative references between 
> models is to ensure that platform URIs are used (by using platform URIs to 
> load the referencing resource). Another way is to use 'pathmap' URIs - if 
> you search this newsgroup for "pathmap" you should find some more useful 
> information...
>
> Kenn
>
> "Ricardo Giacomin" <giacomin@xxxxxxxxxxxxx> wrote in message 
> news:f60b75becb2ba8cf5bf5d7394e60e730$1@xxxxxxxxxxxxxxxxxx
>> Kenn and Ed,
>>
>> I'm not running it as a standalone application. Any hint on why this 
>> happened for the Eclipse application? The load() method is correct?
>>
>> Thanks a lot,
>> Ricardo Giacomin.
>>
>
>