For the moment I'll commit my workaround. Essentially I set a flag when the user changes navigability and test for that flag before allowing a delete event to be propagated.
But yes, I must determine how to get support from guys at eclipse for our work here to improve on this and for further help. Regards Bob. 2009/9/22 Mark Fortner <[email protected]>: > Hi Bob, > It might be worth contacting the EMF guys: Richard Gronback or Ed Merks > about this. They would probably be able to steer you in the right > direction. > > Mark > > On Mon, Sep 21, 2009 at 12:28 PM, Bob Tarling <[email protected]> wrote: >> >> I'm not really happy with my proposed solution for issue >> http://argouml.tigris.org/issues/show_bug.cgi?id=5853 >> >> Essentially the problem seems to be that MDR provides us with both a >> remove event (when a model element is removed from some container) and >> also a delete event when a model element is actually deleted from the >> repository. The MDR model event pump converts the remove event and >> delete event to our own property event wrappers (with our >> DeleteInstanceEvent wrapping the MDR delete event). We are looking for >> DleteInstanceEvent to delete Figs, tree items and items in the target >> manager. >> >> Eclipse only seems to give a remove event as far as I can see. If an >> element is removed from its container then it is also considered out >> of the repository. The euml model event pump converts an eclipse >> remove event to both our own style remove events but also our own >> delete event (DeleteInstanceEvent). >> >> The result being that if a model element is removed to be added to >> some other part of the model then we have actually received a delete >> event and end up deleting relevant Figs, tree items. The item also >> gets deleted from the TargetManager and so the property panel showing >> the element also disappears. >> >> A side effect of changing navigability in eclipse uml is that this >> remove and add takes place. Hence changing navigability makes the >> property panel for the association end disappear. >> >> So, am I missing something. Is there a way I can determine a delete >> event from eclipse UML as opposed to remove? >> >> Bob >> >> ------------------------------------------------------ >> >> http://argouml.tigris.org/ds/viewMessage.do?dsForumId=450&dsMessageId=2397565 >> >> To unsubscribe from this discussion, e-mail: >> [[email protected]]. >> To be allowed to post to the list contact the mailing list moderator, >> email: [[email protected]] > > > > -- > Mark Fortner > > blog: http://feeds.feedburner.com/jroller/ideafactory > ------------------------------------------------------ http://argouml.tigris.org/ds/viewMessage.do?dsForumId=450&dsMessageId=2398580 To unsubscribe from this discussion, e-mail: [[email protected]]. To be allowed to post to the list contact the mailing list moderator, email: [[email protected]]
