Hello, TopBraid Team! I'm working on my plug-in, that react on ontology changes. Changes on ontology made by "Data" part of my plugIn are packed into an IChange (e.g. one change on LiteralObject l1 and one on l2) and are executed with "TB.getSession().getChangeEngine().execute(change)". Other part of my plugIn reacts as "IChangeEngineListener" on changes in the ontology, so it reacts on changes from my "Data" part and TBC user interface (Form etc.) both. The problem is, that when I receive a ChangeOperation, it is grouped in a ChangeOperation with my Change object with 4 TripleChanges (2 'delete's and 2 'add's) inside, but in addition thereafter the same 4 'Change's separately!
I have debugged this behaviour: for example I have 2 of such IChange objects named change1 and change2 in one Eclipse-GEF's CompoundCommand (each executed with "TB.getSession().getChangeEngine().execute(change)" in their own Command). So they should run one after another directly. 1) The first one change1 runs this two changes in his method 'execute(...)' on ontology (c1 and c2) successively, and only afterwards(!) the ChangeEngine fires changes on my listener, so he becomes only ONE 'IChange' in that ChangeOperation. However its records field (=TripleChangeRecord[] ) has no elements (why?). 2) Then the second one change2 (although TBC still showing "Post- processing operation: change1") runs. But its statements to change tripples l1 and l2 lead immediately(!) to reaction of TBC's graphTracker, that notifies my listener after each tripple change. Here it becomes each statement (deleted / added l1 / l2) separately. 3) Thereafter the listener becomes ChangeOperation change2 (I identified it on it label) but with record set of change1 (delete / add l1 / l2) ! Therefore undo/redo of such changes doesn't work properly. Do I use ChangeEngine wrong? Thanks for attention, best Regards, Andriy -- You received this message because you are subscribed to the Google Group "TopBraid Suite Users", the topics of which include TopBraid Composer, TopBraid Live, TopBraid Ensemble, SPARQLMotion and SPIN. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/topbraid-users?hl=en
