Document Listeners

MVC Web Project plugin has the ability to inform ProjectChangeListeners of any change in project.

You can add ProjectChangeListeners either programmatically on Project class, or by using an extension point .

        <!ELEMENT extension (documentlistener)>
        <!ATTLIST extension
                point CDATA #REQUIRED
                id    CDATA #REQUIRED
                name  CDATA #IMPLIED>
  • point - must contain
  • id - an optional unique identifier of this listener.
  • name - an optional name of the extension instance

Extension point contains one and exactly one documentlistener tag:

        <!ELEMENT documentlistener (#EMPTY)>
        <!ATTLIST documentlistener
                class CDATA #REQUIRED>
  • class - the fully qualified name of the class that implements ProjectChangeListener interface.

Currently this extension point is used by class XsltManager. This class is the one that applies XSLT transforms on project save actions.