[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] Links for references?


Apologize is this has been addressed already but I couldn't find anything.

I'd like to support links for refernces between nodes without having an explicit domain object cooresponding to the link. For example, imagine the State model without the transition (this of course assumes that you don't have a many-to-many relation or have actual transition state you care about).

I've managed to support the creation of the link by overiding *TypeLinkCreateCommand.doElementCreation, [with support for doUndo and doRedo), ignoring the super object and simply adding the references to the source and target node objects.

But am now having lot's of second thoughts about wheree to go from here. For example, all of the edit pieces are generated for whatever my "imaginary" Link doman element is. I'm not even sure how one would manage delting the domain element. When I do an undo, it works fine, but after a save, if I try to try that the diagram is deleted (!!) with no error reported. etc..

So not asking to solve all of these problems for me ;) but I'm really wondering wether this is even a reasonable thing to do?