Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Make UML profile plug-in visible
Make UML profile plug-in visible [message #876290] Thu, 24 May 2012 10:14 Go to next message
Tex Iano is currently offline Tex Iano
Messages: 99
Registered: February 2012
Member
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? Smile 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
Re: Make UML profile plug-in visible [message #876322 is a reply to message #876290] Thu, 24 May 2012 11:22 Go to previous message
Ed Willink is currently offline Ed Willink
Messages: 4046
Registered: July 2009
Senior Member
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
Previous Topic:Check profile application
Next Topic:UML2 to Java Literals
Goto Forum:
  


Current Time: Mon Sep 22 22:20:26 GMT 2014

Powered by FUDForum. Page generated in 0.03301 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software