Community
Participate
Working Groups
Build ID: I20070525-1350 Steps To Reproduce: Everything works fine with GMF2.0RC1, but now labels are missing for my compartments and the connections with GMF2.0RC2. 1.Generate new code of my models with RC2 2.Create new compartment in my diagram 3.Labels are missing 4.Same for my connections More information: I downloaded the Night build N20070607 and the problem with compartments is away, but the labels for my connections are still not displayed. I checked the differences between code of RC1 and RC2 of the editparts of these labels of connections and found out, that the method "createFigure()" was changed. If I change this with old generated one it works nice. The new method looks like this: protected IFigure createFigure() { // Parent should assign one using setLabel() method return null; } I think there is the problem, because parent class doesn't call a setLabel() method.
Labels inside compartments has been "fixed" yesterday with bug #191303 (it's not really a fix, kinda workaround, as you need to specify layout explicitly instead of relying on some default code in the editpart). As for link's label, the code you show means that DiagramLabel from your .gmfgraph which you use for link label points to some nested figure inside other figure, and, I bet, that other figure is not the one you use for the link. I'd suggest to have another diagram label, which would point (with figure reference) to appropriate FigureDescriptor and won't be using child accessors.
[target cleanup] 2.0 RC was the original target milestone for this bug
[GMF Restructure] Bug 319140 : product GMF and component Generation was the original product and component for this bug