Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF3D » intermodel connections and gmf
intermodel connections and gmf [message #563108] Thu, 22 October 2009 11:10
Matthias Then is currently offline 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
Previous Topic:Render figure position anaomolies..
Next Topic:intermodel connections and gmf
Goto Forum:
  


Current Time: Thu Apr 17 21:05:20 EDT 2014

Powered by FUDForum. Page generated in 0.01652 seconds