[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] Re: Converting a Object to a Diagram

Alex,
I was talking about ecore diagram only. When I created the shortcut for Class B and generated diagram code I couldn't find any difference in the XXXDiagramEditor class. I don't see any drop listener implemented.


I wrote a XXXDropTargetListener which extends DiagramDropTargetListener and registered the same in the XXXDiagramEditor class.When I try to drop the data from the TreeViewer into my editor I was able to get the object in the getObjectsBeingDropped() of the listener class.

I need to know if I need to draw a diagram do I need to fire a TransactionCommand or do I have to CreateViewRequest.I get lost in this place.
I have 3 EditParts of same type.


  Please do advice.

-Shiva.S