[Jsxe-cvs] SF.net SVN: jsxe: [896] branches/treeview2
Status: Inactive
Brought to you by:
ian_lewis
From: <ian...@us...> - 2006-06-03 22:33:50
|
Revision: 896 Author: ian_lewis Date: 2006-06-03 15:32:06 -0700 (Sat, 03 Jun 2006) ViewCVS: http://svn.sourceforge.net/jsxe/?rev=896&view=rev Log Message: ----------- Updated the Tree View to use the new XMLDocumentListener interface Modified Paths: -------------- branches/treeview2/Changelog branches/treeview2/src/treeview/DefaultView.java Modified: branches/treeview2/Changelog =================================================================== --- branches/treeview2/Changelog 2006-06-02 03:58:41 UTC (rev 895) +++ branches/treeview2/Changelog 2006-06-03 22:32:06 UTC (rev 896) @@ -1,3 +1,7 @@ +06/03/2006 Ian Lewis <Ian...@me...> + + * Updated the Tree View to use the new XMLDocumentListener interface + 02/16/2006 Ian Lewis <Ian...@me...> * Added cut/copy/paste support for nodes in the tree view. There are still Modified: branches/treeview2/src/treeview/DefaultView.java =================================================================== --- branches/treeview2/src/treeview/DefaultView.java 2006-06-02 03:58:41 UTC (rev 895) +++ branches/treeview2/src/treeview/DefaultView.java 2006-06-03 22:32:06 UTC (rev 896) @@ -578,7 +578,6 @@ private XMLDocumentListener m_documentListener = new XMLDocumentListener() {///{{{ //{{{ propertiesChanged - public void propertyChanged(XMLDocument source, String key, String oldValue) { if (CONTINUOUS_LAYOUT.equals(key)) { boolean layout = Boolean.valueOf(source.getProperty(CONTINUOUS_LAYOUT)).booleanValue(); @@ -591,7 +590,6 @@ }//}}} //{{{ structureChanged() - public void structureChanged(XMLDocument source, AdapterNode location) { /* need to reload since saving can change the structure, @@ -603,6 +601,21 @@ attributesTable.updateUI(); }//}}} + //{{{ insertUpdate() + public void insertUpdate(XMLDocumentEvent event) { + structureChanged(event.getXMLDocument(), null); + }//}}} + + //{{{ removeUpdate() + public void removeUpdate(XMLDocumentEvent event) { + structureChanged(event.getXMLDocument(), null); + }//}}} + + //{{{ changeUpdate() + public void changeUpdate(XMLDocumentEvent event) { + structureChanged(event.getXMLDocument(), null); + }//}}} + };//}}} //}}} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |