Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Service Component Architecture (SCA) Tools » Problems regenerating the diagram code
Problems regenerating the diagram code [message #2728] Tue, 19 August 2008 16:32 Go to next message
Tobias Arnold is currently offline Tobias Arnold
Messages: 4
Registered: July 2009
Junior Member
Hi,

first of all I want to say thank you for the great editor! I downloaded
the source and tried to regenerate the code. Regenerating sca.genmodel
works fine but regenerating the diagram code via sca.gmfgen results in
different code. WrapLabel seems to be replaced by WrappingLabel and
generates an error. If I resolve it manually the editor loads but looks a
bit different. Component Name isn't centered for example. Maybe I'm using
a different version of the GMF plugins (i'm using the newest version from
today). Could you tell me which version you use or what i am doing wrong?

thank you,

Tobias
Re: Problems regenerating the diagram code [message #2761 is a reply to message #2728] Wed, 20 August 2008 19:57 Go to previous message
Stephane Drapeau is currently offline Stephane Drapeau
Messages: 198
Registered: July 2009
Senior Member
Tobias Arnold a écrit :
> Hi,
>
> first of all I want to say thank you for the great editor! I downloaded
> the source and tried to regenerate the code. Regenerating sca.genmodel
> works fine but regenerating the diagram code via sca.gmfgen results in
> different code. WrapLabel seems to be replaced by WrappingLabel and
> generates an error. If I resolve it manually the editor loads but looks
> a bit different. Component Name isn't centered for example. Maybe I'm
> using a different version of the GMF plugins (i'm using the newest
> version from today). Could you tell me which version you use or what i
> am doing wrong?
>
> thank you,
>
> Tobias
>

Hi Tobias,

To be compatible with GMF for Europa and for Ganymede, I had to copy the
class WrapLabel.
The contract of the class WrapLabel changed between the two versions of
GMF. As you said, for example, the component name isn't centered with
Ganymede.

After the generation, you can replace all WrapLabel/WrappingLabel
by
org.eclipse.stp.sca.gmf.runtime.draw2d.ui.figures.WrapLabel

Regards,

Stéphane Drapeau
Obeo
Re: Problems regenerating the diagram code [message #572914 is a reply to message #2728] Wed, 20 August 2008 19:57 Go to previous message
Stephane Drapeau is currently offline Stephane Drapeau
Messages: 198
Registered: July 2009
Senior Member
Tobias Arnold a écrit :
> Hi,
>
> first of all I want to say thank you for the great editor! I downloaded
> the source and tried to regenerate the code. Regenerating sca.genmodel
> works fine but regenerating the diagram code via sca.gmfgen results in
> different code. WrapLabel seems to be replaced by WrappingLabel and
> generates an error. If I resolve it manually the editor loads but looks
> a bit different. Component Name isn't centered for example. Maybe I'm
> using a different version of the GMF plugins (i'm using the newest
> version from today). Could you tell me which version you use or what i
> am doing wrong?
>
> thank you,
>
> Tobias
>

Hi Tobias,

To be compatible with GMF for Europa and for Ganymede, I had to copy the
class WrapLabel.
The contract of the class WrapLabel changed between the two versions of
GMF. As you said, for example, the component name isn't centered with
Ganymede.

After the generation, you can replace all WrapLabel/WrappingLabel
by
org.eclipse.stp.sca.gmf.runtime.draw2d.ui.figures.WrapLabel

Regards,

Stéphane Drapeau
Obeo
Previous Topic:Problems regenerating the diagram code
Next Topic:Extending the sca diagram editor
Goto Forum:
  


Current Time: Sun Oct 26 09:44:31 GMT 2014

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

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