I created a Graphiti editor based on an Ecore model, which contains a root EClass Diagram, an abstract EClass Element (and several derived classes) and an EClass Wire. In the editor two elements should be connected by a wire.

It is possible to drag elements on the editor screen. I can't draw a connection (wire) between them as the cursor always indicates it is not allowed to start a connection. Methods from WireCreateFeature and WireAddFeature (e.g. canStartConnection) are not even called.

Could anyone point out to me which method outside my one classes is responsible for this? Or is it caused by the way I modeled the classes and references in my ecore model?

this sounds as if your feature classes are not returned by your feature provider. Please check if your implementation of getCreateConnectionFeatures() returns your create connection feature and getAddFeature() returns the corresponding add feature.

Michael,
thanks for the quick reply. For me it looks like I implemented everything as mentioned in the tutorial.
I checked, that getCreateConnectionFeatures() returns my WireCreatefeature. getAddFeature() works fine for the elements (e.g. busbar), but is not called when selecting Wire in the editor instead of an Element.