|
Re: Make UML profile plug-in visible [message #876322 is a reply to message #876290] |
Thu, 24 May 2012 07:22  |
Eclipse User |
|
|
|
Hi
It's always a good idea to study Eclipse code that works.
The magic EAnnotations in the UML models should show how to name
packages an files as you like.
The uml.resources plugin.xml shows how to configure pathmap.
Regards
Ed Willink
On 24/05/2012 11:14, Tex Iano wrote:
> Hi,
>
> I have created an eclipse plug-in with my a UML profile I created.
>
> First a question:
>
> My profile has the name "MyProfile". Similar as "Ecore" or "UML2".
> However, my packages are now named:
>
> com.myfirstprofile.MyProfile
>
> For Ecore the packages are named:
>
> org.eclipse.ecore etc
> How have you managed to name your package with lower case letters and
> the model with upper case letters? I can only decide between these two
> alternatives.
>
> Well, ok, now I have my plugin. The package is expected to be located
> using a pathmap:
>
> pathmap://UML_PROFILES/MyProfile.profile.uml
>
> I have added the mapping to the plugin.xml. Works too.
>
> So, now my question is: How can I find my profile in eclipse to apply
> it? :) Of course I can load the profile.uml file as resource. But then
> the file is added as profile. But I want that in the final model
> "pathmap://UML_PROFILES ..." is used to locate my profile.
>
> So when getting the list of available profiles, how can I make my
> profile available using the pathmap location?
>
> Regards,
>
> Tex
|
|
|
Powered by
FUDForum. Page generated in 0.69941 seconds