Community
Participate
Working Groups
Build Identifier: I get a nasty diagram when I try to create a reflexive association on a class, which is nested in a component (see atached screenshot). In the diagram file occur TWO edge-definitions, but the model file correct, so when you close and reopen the diagram everything works fine. But if you are shocked by the two associations and you want to remove them (or at least one of them), you'll get an entry in the eclipse error log and you can do nothing but close the diagram. I haven't been able to get the problem source to provide a fix. Also I don't know whether this is a U2T bug or if it relates to GMF. Reproducible: Always Steps to Reproduce: 1. Create a Component 2. nest a Class c in the Component 3. crate an association from c to c
Mentioned screenshot would definitely help. severity -> normal, no formal reasons for major category.
Severity: back, normal -> major, user data loss, the whole diagram is broken Steps to repeat: 1. create component on CompD, 2. create classed A, B inside the component 3. draw association between A and B => there are 2 different associations between A and B shown at the diagram. 4. select one of the associations and delete it => Nothing happens, exception in log. But now its impossible to reopen this diagram : any reopen attempt fails with: java.lang.ClassCastException: org.eclipse.uml2.uml.internal.impl.PackageImpl cannot be cast to org.eclipse.uml2.uml.Association at org.eclipse.uml2.diagram.component.edit.parts.AssociationEditPart.addSemanticListeners(AssociationEditPart.java:108) at org.eclipse.gmf.runtime.diagram.ui.editparts.ConnectionEditPart.activate(ConnectionEditPart.java:253) at org.eclipse.gef.editparts.AbstractGraphicalEditPart.activate(AbstractGraphicalEditPart.java:196) at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart.access$0(GraphicalEditPart.java:1) at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart.activate(GraphicalEditPart.java:205) at org.eclipse.gef.editparts.AbstractEditPart.activate(AbstractEditPart.java:152) at org.eclipse.gef.editparts.AbstractGraphicalEditPart.activate(AbstractGraphicalEditPart.java:193) at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart.access$0(GraphicalEditPart.java:1) at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart.activate(GraphicalEditPart.java:205) at org.eclipse.gef.editparts.AbstractEditPart.activate(AbstractEditPart.java:152) at org.eclipse.gef.editparts.AbstractGraphicalEditPart.activate(AbstractGraphicalEditPart.java:193) at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart.access$0(GraphicalEditPart.java:1) at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart.activate(GraphicalEditPart.java:205) at org.eclipse.gmf.runtime.diagram.ui.editpolicies.CanonicalConnectionEditPolicy.refreshOnActivate(CanonicalConnectionEditPolicy.java:106) at org.eclipse.gmf.runtime.diagram.ui.editpolicies.CanonicalEditPolicy.activate(CanonicalEditPolicy.java:628) at org.eclipse.gef.editparts.AbstractEditPart.activateEditPolicies(AbstractEditPart.java:165) at org.eclipse.gef.editparts.AbstractEditPart.activate(AbstractEditPart.java:148) at org.eclipse.gef.editparts.AbstractGraphicalEditPart.activate(AbstractGraphicalEditPart.java:193) at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart.access$0(GraphicalEditPart.java:1) at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart.activate(GraphicalEditPart.java:205) at org.eclipse.gmf.runtime.diagram.ui.editparts.DiagramEditPart.activate(DiagramEditPart.java:349) at org.eclipse.gef.editparts.AbstractEditPart.addChild(AbstractEditPart.java:201)
Created attachment 170651 [details] Picture of crashed diagram
Created attachment 171127 [details] fixes the subj
Comment on attachment 171127 [details] fixes the subj reviewed
Patch committed with minor changes. Fixed now