Question about Taipan example [message #24170] |
Sun, 20 August 2006 06:09  |
Eclipse User |
|
|
|
Originally posted by: serefarikan.kurumsalteknoloji.com
Hi,
I have been having a problem with putting a label on a link I have
created between two classes. This functionality works fine in Taipan
example, but I could not find out the difference between my
implementation and Taipan. So I have checked out every step. I have
realized that if I follow the steps below I have a problem:
1) import taipan example into your workspace(as projects)
2) using taipan gmfmap file, create generator model overwriting the
gmfgen in the project.
3) generate the diagram code
4) run the resulting pluging
Voila!! The link from ship to port (ship destination) will not allow you
to attach a label to it. It will produce an exception based on the
editpart. (some null pointer exception).
The problem occurs since the original gmfgen file in taipan has a Desing
Label Model Facet under Gen Link Label ShipDestionationMarkerEditPart,
but the generated one does not contain this. When I add it by hand to my
own example, It also works.
So the question is, the gmfgen part of the generation must also be
modified by hand everytime it is constructed? I had the opinion that for
a standart generation of editparts for my model, I should not deal with
tweaking the generated model files etc.
I might be misinterpreting the general methodology here, and would like
to hear your comments.
Best Regards
Seref Arikan
|
|
|
Re: Question about Taipan example [message #24342 is a reply to message #24170] |
Mon, 21 August 2006 05:35  |
Eclipse User |
|
|
|
Originally posted by: 5d5.mail.ru
Hello!
See https://bugs.eclipse.org/bugs/show_bug.cgi?id=147034
Seref Arikan wrote:
> Hi,
> I have been having a problem with putting a label on a link I have
> created between two classes. This functionality works fine in Taipan
> example, but I could not find out the difference between my
> implementation and Taipan. So I have checked out every step. I have
> realized that if I follow the steps below I have a problem:
>
> 1) import taipan example into your workspace(as projects)
> 2) using taipan gmfmap file, create generator model overwriting the
> gmfgen in the project.
> 3) generate the diagram code
> 4) run the resulting pluging
>
> Voila!! The link from ship to port (ship destination) will not allow you
> to attach a label to it. It will produce an exception based on the
> editpart. (some null pointer exception).
> The problem occurs since the original gmfgen file in taipan has a Desing
> Label Model Facet under Gen Link Label ShipDestionationMarkerEditPart,
> but the generated one does not contain this. When I add it by hand to my
> own example, It also works.
> So the question is, the gmfgen part of the generation must also be
> modified by hand everytime it is constructed? I had the opinion that for
> a standart generation of editparts for my model, I should not deal with
> tweaking the generated model files etc.
> I might be misinterpreting the general methodology here, and would like
> to hear your comments.
> Best Regards
> Seref Arikan
|
|
|
Powered by
FUDForum. Page generated in 0.27281 seconds