[Wixedit-commits] wixedit/src DisplayTreeBasePanel.cs,1.9,1.10
Project moved to Github: https://github.com/WixEdit/WixEdit
Brought to you by:
jaykee
From: Jasper K. <ja...@us...> - 2006-06-13 10:17:36
|
Update of /cvsroot/wixedit/wixedit/src In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv3453/src Modified Files: DisplayTreeBasePanel.cs Log Message: Improved error handling. Index: DisplayTreeBasePanel.cs =================================================================== RCS file: /cvsroot/wixedit/wixedit/src/DisplayTreeBasePanel.cs,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** DisplayTreeBasePanel.cs 1 Jun 2006 12:04:07 -0000 1.9 --- DisplayTreeBasePanel.cs 13 Jun 2006 10:17:31 -0000 1.10 *************** *** 207,213 **** } ! XmlAttributeAdapter attAdapter = (XmlAttributeAdapter) CurrentGrid.SelectedObject; ! PropertyAdapterBase adaptorBase = CurrentGrid.SelectedObject as PropertyAdapterBase; ! // Need to change "Delete" to "Clear" for required items. bool isRequired = false; --- 207,216 ---- } ! XmlAttributeAdapter attAdapter = (XmlAttributeAdapter) CurrentGrid.SelectedObject; ! if (attAdapter.XmlNodeDefinition != null) { ! // How can this happen? Just trow an exception so it can be reported to the WixEdit website. ! throw new Exception(String.Format("XmlAttributeAdapter.XmlNodeDefinition is null of \"{0}\" in {1}", attAdapter.GetType(), this.GetType())); ! } ! // Need to change "Delete" to "Clear" for required items. bool isRequired = false; |