Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 Tools » How to create a umlclass file, and create some notations and then save by programming
How to create a umlclass file, and create some notations and then save by programming [message #870182] Mon, 07 May 2012 03:53 Go to next message
jy zhang is currently offline jy zhang
Messages: 19
Registered: May 2012
Junior Member
(I asked this question in GMF forum already,
but I'm not sure this question belongs in which forum better,
so I asked here again. Sorry for this)

We can create .umlclass (uml2.1 class diagram) from menu,
but how can we create a .umlclass file and add some class notation, and then save by programming?
(I've created .uml file and create some package,class and then save by programming too. Now I need to do this for diagram/notation)

Thanks a lot!

[Updated on: Mon, 07 May 2012 03:55]

Report message to a moderator

Re: How to create a umlclass file, and create some notations and then save by programming [message #870225 is a reply to message #870182] Mon, 07 May 2012 06:45 Go to previous messageGo to next message
Ed Willink is currently offline Ed Willink
Messages: 3838
Registered: July 2009
Senior Member
Hi

Have you looked at the articles and tutorials in the UML2 Developer Guide?

Regards

Ed Willink

On 07/05/2012 08:53, jy zhang wrote:
> (I asked this question in GMF forum already, but I'm not sure this
> question belongs in which forum better, so I asked here again. Sorry
> for this)
>
> We can create .umlclass (uml2.1 class diagram) from menu,
> but how can we create a .umlclass file and add some class notation,
> and then save by programming?
> (I've created .uml file and create some package,class and then save by
> programming too. Now I need to do this for diagram/notation)
>
> Thanks a lot!
>
>
Re: How to create a umlclass file, and create some notations and then save by programming [message #870261 is a reply to message #870225] Mon, 07 May 2012 09:52 Go to previous messageGo to next message
jy zhang is currently offline jy zhang
Messages: 19
Registered: May 2012
Junior Member
Hi Edward, Thanks for your reply.

I've read some articles and tutorials in the UML2 Developer Guide,
but what a pity I haven't found how to create uml2 diagrams and notations by programming...(I only found how to create uml2 model and save/load it)
Could you give me more information?

Thanks again!

Edward Willink wrote on Mon, 07 May 2012 06:45

Hi

Have you looked at the articles and tutorials in the UML2 Developer Guide?

Regards

Ed Willink

Re: How to create a umlclass file, and create some notations and then save by programming [message #870264 is a reply to message #870261] Mon, 07 May 2012 09:59 Go to previous messageGo to next message
Ed Willink is currently offline Ed Willink
Messages: 3838
Registered: July 2009
Senior Member
Hi

The diagrams are only EMF models so the same programmatic principles
apply, but as models get more complex creating them by hand gets harder
and harder.

I recommend using a model to model transformation tool to go from your
source concepts to a diagram model instance.

You might even consider an Xtext DSL for your source concepts.

Regards

Ed Willink

On 07/05/2012 14:52, jy zhang wrote:
> Hi Edward, Thanks for your reply.
>
> I've read some articles and tutorials in the UML2 Developer Guide,
> but what a pity I haven't found how to create uml2 diagrams and
> notations by programming...(I only found how to create uml2 model and
> save/load it)
> Could you give me more information?
>
> Thanks again!
>
> Edward Willink wrote on Mon, 07 May 2012 06:45
>> Hi
>>
>> Have you looked at the articles and tutorials in the UML2 Developer
>> Guide?
>>
>> Regards
>>
>> Ed Willink
>
>
Re: How to create a umlclass file, and create some notations and then save by programming [message #870458 is a reply to message #870264] Tue, 08 May 2012 06:34 Go to previous message
jy zhang is currently offline jy zhang
Messages: 19
Registered: May 2012
Junior Member
Hi Edward,

Thanks for your advice.

It seems it's complex to create diagram and notation by programmatically.
I'll try to open diagram and get content information by programmatically first to get a glance at emf/gmf/uml2.

Thanks again.

Edward Willink wrote on Mon, 07 May 2012 09:59
Hi

The diagrams are only EMF models so the same programmatic principles
apply, but as models get more complex creating them by hand gets harder
and harder.

I recommend using a model to model transformation tool to go from your
source concepts to a diagram model instance.

You might even consider an Xtext DSL for your source concepts.

Regards

Ed Willink


Previous Topic:Package NOT Found when read .umlclass file by programmatically
Next Topic:Stéréotype and Papyrus
Goto Forum:
  


Current Time: Wed Apr 16 06:50:32 EDT 2014

Powered by FUDForum. Page generated in 0.11820 seconds