Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Tracking Changes in XML Editor
Tracking Changes in XML Editor [message #216003] Tue, 24 June 2008 20:34 Go to next message
Eclipse UserFriend
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
now dirty.

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 Go to previous message
Eclipse UserFriend
Originally posted by: wuamy.ca.ibm.com

You might want to check out INodeAdapter. Also, check out the classes in
org.eclipse.wst.xml.ui.internal.contentoutline &
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.
Previous Topic:ganymede: xml editor: clear all blank lines?
Next Topic:XSLT-transformation not working in 3.0/0.8
Goto Forum:
  


Current Time: Thu Apr 25 17:13:00 GMT 2024

Powered by FUDForum. Page generated in 0.03064 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top