Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 Tools » Problems with implementing own statemachine
Problems with implementing own statemachine [message #471920] Wed, 21 November 2007 08:55 Go to next message
Eclipse UserFriend
Originally posted by: steffendohle.gmx.de

Hi,
i try to rebuild the statemachine of the UML2Tools with some modifications.
Most parts work fine, but I have 2 problems:

1. When building a new statemachine, a new statemachine element is created,
but doesn't apear on the canvas. I need to create a second statmachine to
draw other elements.
package -> statemachine -> statemachine -> region -> states

2. Adding a region to a statemachine works. But the region is sized as big
as the statemachine, so the statemachine and its label for the name is
always covered. In the Tools the region is resized when created.

Can someone give me a hint where to find solutions. How is this done in the
UML2Tools? Perhaps a piece of written code in an edit policy? Thanks for
your help.

Best regards
Steffen
Re: Problems with implementing own statemachine [message #471921 is a reply to message #471920] Wed, 21 November 2007 17:48 Go to previous messageGo to next message
Tatiana Fesenko is currently offline Tatiana FesenkoFriend
Messages: 530
Registered: July 2009
Senior Member
Hello Steffen,

In UML2Tools we use custom attributes for the gmfgen file. These attrubutes
have xml namespace prefix 'uml2.gmfgenext'. Such attributes provide code
for many ours features. Unfortunately, on gmfmap file to gmfgen file transformation
these attributes are lost. One should manually add these attrubutes to gmfgen
file on every generator model re-generation. So, just checkout stateMachineDiagram.gmfgen
from cvs, have a look where attributes with 'uml2.gmfgenext' xmlns are used
and paste them into your generator model after generation.
It helps, isnt't it?

Best regards,
Tatiana.

> Hi,
> i try to rebuild the statemachine of the UML2Tools with some
> modifications.
> Most parts work fine, but I have 2 problems:
> 1. When building a new statemachine, a new statemachine element is
> created,
> but doesn't apear on the canvas. I need to create a second statmachine
> to
> draw other elements.
> package -> statemachine -> statemachine -> region -> states
> 2. Adding a region to a statemachine works. But the region is sized as
> big as the statemachine, so the statemachine and its label for the
> name is always covered. In the Tools the region is resized when
> created.
>
> Can someone give me a hint where to find solutions. How is this done
> in the UML2Tools? Perhaps a piece of written code in an edit policy?
> Thanks for your help.
>
> Best regards Steffen
>
Re: Problems with implementing own statemachine [message #472048 is a reply to message #471921] Fri, 23 November 2007 16:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: steffendohle.gmx.de

Tatiana Fesenko wrote:
> So, just checkout stateMachineDiagram.gmfgen from cvs, have
> a look where attributes with 'uml2.gmfgenext' xmlns are used and paste
> them into your generator model after generation. It helps, isnt't it?

Hi,
thanks for help! I tried to generate the source out of the unmodified
stateMachineDiagram.gmfgen now. But there are problems, too. The
statemachine is created in teh top left corner and is not moveable or
resizeable.

Best regards
Steffen
Re: Problems with implementing own statemachine [message #472049 is a reply to message #472048] Fri, 23 November 2007 16:50 Go to previous messageGo to next message
Michael Golubev is currently offline Michael GolubevFriend
Messages: 383
Registered: July 2009
Senior Member
Hello Steffen,

Please make sure that you are regenerating it with GMF 2.1 M3.
Also, make sure that original Uml2Tools sources for statemachine plugin are
available to the generator, and the generated code does NOT goes to the new
project (in this case all generated NOT code would be lost).
Finally, make sure that you are generating it with our custom action ("Generate
UML2Tools diagram" or something like this) and NOT the default GMF generator
action.

Regards,
Michael

> Tatiana Fesenko wrote:
>
>> So, just checkout stateMachineDiagram.gmfgen from cvs, have
>> a look where attributes with 'uml2.gmfgenext' xmlns are used and
>> paste
>> them into your generator model after generation. It helps, isnt't it?
> Hi,
> thanks for help! I tried to generate the source out of the unmodified
> stateMachineDiagram.gmfgen now. But there are problems, too. The
> statemachine is created in teh top left corner and is not moveable or
> resizeable.
> Best regards
> Steffen
Re: Problems with implementing own statemachine [message #472053 is a reply to message #472048] Fri, 23 November 2007 20:24 Go to previous messageGo to next message
Michael Golubev is currently offline Michael GolubevFriend
Messages: 383
Registered: July 2009
Senior Member
Hello Steffen,

Do you mind posting your modified models here or sending them directky to
me?
I think I have an idea about the possible sourceof problems, but I would
like to see the models/generated problematic code first, if possible.

Regards,
Michael


> Tatiana Fesenko wrote:
>
>> So, just checkout stateMachineDiagram.gmfgen from cvs, have
>> a look where attributes with 'uml2.gmfgenext' xmlns are used and
>> paste
>> them into your generator model after generation. It helps, isnt't it?
> Hi,
> thanks for help! I tried to generate the source out of the unmodified
> stateMachineDiagram.gmfgen now. But there are problems, too. The
> statemachine is created in teh top left corner and is not moveable or
> resizeable.
> Best regards
> Steffen
Re: Problems with implementing own statemachine [message #472055 is a reply to message #472049] Mon, 26 November 2007 19:32 Go to previous message
Eclipse UserFriend
Originally posted by: steffendohle.gmx.de

Thanks,
generating from the original model files work now.
I'll try with my own model next.

Best regards
Steffen

Michael Golubev wrote:
> Also, make sure that original Uml2Tools sources for statemachine plugin
> are available to the generator, and the generated code does NOT goes to
> the new project (in this case all generated NOT code would be lost).
> Finally, make sure that you are generating it with our custom action
> ("Generate UML2Tools diagram" or something like this) and NOT the default
> GMF generator action.
Re: Problems with implementing own statemachine [message #611574 is a reply to message #471920] Wed, 21 November 2007 17:48 Go to previous message
Tatiana Fesenko is currently offline Tatiana FesenkoFriend
Messages: 530
Registered: July 2009
Senior Member
Hello Steffen,

In UML2Tools we use custom attributes for the gmfgen file. These attrubutes
have xml namespace prefix 'uml2.gmfgenext'. Such attributes provide code
for many ours features. Unfortunately, on gmfmap file to gmfgen file transformation
these attributes are lost. One should manually add these attrubutes to gmfgen
file on every generator model re-generation. So, just checkout stateMachineDiagram.gmfgen
from cvs, have a look where attributes with 'uml2.gmfgenext' xmlns are used
and paste them into your generator model after generation.
It helps, isnt't it?

Best regards,
Tatiana.

> Hi,
> i try to rebuild the statemachine of the UML2Tools with some
> modifications.
> Most parts work fine, but I have 2 problems:
> 1. When building a new statemachine, a new statemachine element is
> created,
> but doesn't apear on the canvas. I need to create a second statmachine
> to
> draw other elements.
> package -> statemachine -> statemachine -> region -> states
> 2. Adding a region to a statemachine works. But the region is sized as
> big as the statemachine, so the statemachine and its label for the
> name is always covered. In the Tools the region is resized when
> created.
>
> Can someone give me a hint where to find solutions. How is this done
> in the UML2Tools? Perhaps a piece of written code in an edit policy?
> Thanks for your help.
>
> Best regards Steffen
>
Re: Problems with implementing own statemachine [message #611589 is a reply to message #471921] Fri, 23 November 2007 16:40 Go to previous message
Eclipse UserFriend
Originally posted by: steffendohle.gmx.de

Tatiana Fesenko wrote:
> So, just checkout stateMachineDiagram.gmfgen from cvs, have
> a look where attributes with 'uml2.gmfgenext' xmlns are used and paste
> them into your generator model after generation. It helps, isnt't it?

Hi,
thanks for help! I tried to generate the source out of the unmodified
stateMachineDiagram.gmfgen now. But there are problems, too. The
statemachine is created in teh top left corner and is not moveable or
resizeable.

Best regards
Steffen
Re: Problems with implementing own statemachine [message #611592 is a reply to message #472048] Fri, 23 November 2007 16:50 Go to previous message
Michael Golubev is currently offline Michael GolubevFriend
Messages: 383
Registered: July 2009
Senior Member
Hello Steffen,

Please make sure that you are regenerating it with GMF 2.1 M3.
Also, make sure that original Uml2Tools sources for statemachine plugin are
available to the generator, and the generated code does NOT goes to the new
project (in this case all generated NOT code would be lost).
Finally, make sure that you are generating it with our custom action ("Generate
UML2Tools diagram" or something like this) and NOT the default GMF generator
action.

Regards,
Michael

> Tatiana Fesenko wrote:
>
>> So, just checkout stateMachineDiagram.gmfgen from cvs, have
>> a look where attributes with 'uml2.gmfgenext' xmlns are used and
>> paste
>> them into your generator model after generation. It helps, isnt't it?
> Hi,
> thanks for help! I tried to generate the source out of the unmodified
> stateMachineDiagram.gmfgen now. But there are problems, too. The
> statemachine is created in teh top left corner and is not moveable or
> resizeable.
> Best regards
> Steffen
Re: Problems with implementing own statemachine [message #611596 is a reply to message #472048] Fri, 23 November 2007 20:24 Go to previous message
Michael Golubev is currently offline Michael GolubevFriend
Messages: 383
Registered: July 2009
Senior Member
Hello Steffen,

Do you mind posting your modified models here or sending them directky to
me?
I think I have an idea about the possible sourceof problems, but I would
like to see the models/generated problematic code first, if possible.

Regards,
Michael


> Tatiana Fesenko wrote:
>
>> So, just checkout stateMachineDiagram.gmfgen from cvs, have
>> a look where attributes with 'uml2.gmfgenext' xmlns are used and
>> paste
>> them into your generator model after generation. It helps, isnt't it?
> Hi,
> thanks for help! I tried to generate the source out of the unmodified
> stateMachineDiagram.gmfgen now. But there are problems, too. The
> statemachine is created in teh top left corner and is not moveable or
> resizeable.
> Best regards
> Steffen
Re: Problems with implementing own statemachine [message #611599 is a reply to message #472049] Mon, 26 November 2007 19:32 Go to previous message
Eclipse UserFriend
Originally posted by: steffendohle.gmx.de

Thanks,
generating from the original model files work now.
I'll try with my own model next.

Best regards
Steffen

Michael Golubev wrote:
> Also, make sure that original Uml2Tools sources for statemachine plugin
> are available to the generator, and the generated code does NOT goes to
> the new project (in this case all generated NOT code would be lost).
> Finally, make sure that you are generating it with our custom action
> ("Generate UML2Tools diagram" or something like this) and NOT the default
> GMF generator action.
Previous Topic:Problems with implementing own statemachine
Next Topic:M3 release this week?
Goto Forum:
  


Current Time: Fri Apr 26 09:57:39 GMT 2024

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

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

Back to the top