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