|Tracking Changes in XML Editor [message #216003]
||Tue, 24 June 2008 20:34
Originally posted by: lbarbour.gmail.com|
I am trying to track changes made to XML files within the XML Editor. I
need to record information such as to which node the change took place,
and what the change was (delete, change of data, etc).
Using a selection listener on the IWorkbenchPage I can track when a node
is selected, and track the path to it. I then use an IDocument listener to
record the event information. This works for changes of attributes (e.g. a
name change of an element), but I cannot get information such as when an
XML element has been removed from the model.
I have also tried using a IModelStateListener but this does not provide me
with the detailed information that I need, only the fact that the model is
Is there a better way to go about doing this?
|Re: Tracking Changes in XML Editor [message #216201 is a reply to message #216003]
||Thu, 26 June 2008 17:11
Originally posted by: wuamy.ca.ibm.com|
You might want to check out INodeAdapter. Also, check out the classes in
org.eclipse.wst.sse.ui.internal.contentoutline. That's code for the
outline view and the outline view has to react to node changes as well, so
that might serve as a helpful example.
Powered by FUDForum
. Page generated in 0.12110 seconds