Skip to main content


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 07:53 Go to next message
jy zhang is currently offline jy zhangFriend
Messages: 20
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 07: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 10:45 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
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 13:52 Go to previous messageGo to next message
jy zhang is currently offline jy zhangFriend
Messages: 20
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 13:59 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
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 10:34 Go to previous message
jy zhang is currently offline jy zhangFriend
Messages: 20
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: Fri Apr 26 08:09:26 GMT 2024

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

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

Back to the top