intermodel connections and gmf [message #563108] |
Thu, 22 October 2009 15:10 |
Matthias Then Messages: 10 Registered: July 2009 |
Junior Member |
|
|
Dear GEF3D-developers,
in your article in the Eclipse-Magazine your working with intermodel connections. I tried to integrate these intermodel connections into my project the same way as you did in your demo project (de.eclipsemag.gef3d.sample).
It doesn't work, the problem is the following operation:
org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeNodeEditPa rt.
getTargetConnectionAnchor
(org.eclipse.gef.ConnectionEditPart connEditPart)
The operation starts with the following line:
final org.eclipse.gmf.runtime.diagram.ui.editparts.ConnectionEditP art connection = (org.eclipse.gmf.runtime.diagram.ui.editparts.ConnectionEdit Part) connEditPart;
In my case the ShapeNodeEditPart is a org.eclipse.uml2.diagram.clazz.edit.parts.Class2EditPart and the Connection is a MarkedElementEditPart. The class cast doesn't work. (The operation works for example for Class2EditParts and Associations.)
Is anyone here, who already solved the problem to use intermodel connections with org.eclipse.uml2 - elements?
Best regards,
Matthias
|
|
|
Powered by
FUDForum. Page generated in 0.04105 seconds