Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Generate editor from static profile
Generate editor from static profile [message #478307] Thu, 16 April 2009 08:55 Go to next message
hernandez is currently offline hernandezFriend
Messages: 8
Registered: July 2009
Junior Member
Hello all,

I have an static profile. I have generated the EMF project from my profile
and I have generated the editor code. This editor does not allow me to
create child elements of my profile.

Has anyone tried to do this or anyone has an idea about it?

Thank you in advance.
Re: Generate editor from static profile [message #478308 is a reply to message #478307] Thu, 16 April 2009 18:44 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Hernandez,

Instances of stereotypes or stereotype applications can't exist on their
own. They are intended to extend other meta types and, for example, the
base_XXX property would need to be set.

I believe that instead of creating an editor for your static profile, you
really want to create instances of meta types and then apply the stereotype.

For example, if you created a stereotype called "MyClass" that extended
uml::Class. You probably want to create an editor that had a menu item to
create a uml::Class with the "MyClass" stereotype applied as opposed to just
creating an instance of the stereotype "MyClass" - which is what you would
get if you used the automatically generated editor from the static profile.

- James.


"hernandez " <lauhp09@gmail.com> wrote in message
news:1eca398d4f7937f475b9410318ad94ce$1@www.eclipse.org...
> Hello all,
>
> I have an static profile. I have generated the EMF project from my profile
> and I have generated the editor code. This editor does not allow me to
> create child elements of my profile.
> Has anyone tried to do this or anyone has an idea about it?
>
> Thank you in advance.
>
Re: Generate editor from static profile [message #627498 is a reply to message #478307] Thu, 16 April 2009 18:44 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Hernandez,

Instances of stereotypes or stereotype applications can't exist on their
own. They are intended to extend other meta types and, for example, the
base_XXX property would need to be set.

I believe that instead of creating an editor for your static profile, you
really want to create instances of meta types and then apply the stereotype.

For example, if you created a stereotype called "MyClass" that extended
uml::Class. You probably want to create an editor that had a menu item to
create a uml::Class with the "MyClass" stereotype applied as opposed to just
creating an instance of the stereotype "MyClass" - which is what you would
get if you used the automatically generated editor from the static profile.

- James.


"hernandez " <lauhp09@gmail.com> wrote in message
news:1eca398d4f7937f475b9410318ad94ce$1@www.eclipse.org...
> Hello all,
>
> I have an static profile. I have generated the EMF project from my profile
> and I have generated the editor code. This editor does not allow me to
> create child elements of my profile.
> Has anyone tried to do this or anyone has an idea about it?
>
> Thank you in advance.
>
Previous Topic:Generate editor from static profile
Next Topic:Static profile stereotypes not recognized as stereotypes
Goto Forum:
  


Current Time: Thu Apr 25 05:20:13 GMT 2024

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

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

Back to the top