Author: miguel
Date: 2008-01-02 15:56:16 -0500 (Wed, 02 Jan 2008)
New Revision: 92126

Modified:
   trunk/mono-tools/gui-compare/CecilMetadata.cs
   trunk/mono-tools/gui-compare/ChangeLog
   trunk/mono-tools/gui-compare/CompareContext.cs
   trunk/mono-tools/gui-compare/MainWindow.cs
Log:
Use the formatting in a few more places in CecilMetadata

Modified: trunk/mono-tools/gui-compare/CecilMetadata.cs
===================================================================
--- trunk/mono-tools/gui-compare/CecilMetadata.cs       2008-01-02 20:52:10 UTC 
(rev 92125)
+++ trunk/mono-tools/gui-compare/CecilMetadata.cs       2008-01-02 20:56:16 UTC 
(rev 92126)
@@ -651,7 +651,7 @@
 
                public override string GetMemberType()
                {
-                       return pd.PropertyType.FullName.Replace ('/','+');
+                       return CecilUtils.FormatTypeLikeCorCompare 
(pd.PropertyType.FullName);
                }
                
                public override string GetMemberAccess()
@@ -691,7 +691,7 @@
 
                public override string GetMemberType()
                {
-                       return ed.EventType.FullName.Replace('/','+');
+                       return CecilUtils.FormatTypeLikeCorCompare 
(ed.EventType.FullName);
                }
                
                public override string GetMemberAccess()

Modified: trunk/mono-tools/gui-compare/ChangeLog
===================================================================
--- trunk/mono-tools/gui-compare/ChangeLog      2008-01-02 20:52:10 UTC (rev 
92125)
+++ trunk/mono-tools/gui-compare/ChangeLog      2008-01-02 20:56:16 UTC (rev 
92126)
@@ -1,3 +1,7 @@
+2008-01-02  Miguel de Icaza <[EMAIL PROTECTED]> 
+
+       
+
 2008-01-02  Chris Toshok <[EMAIL PROTECTED]> 
 
        * MainWindow.cs: hide the summary when we start refreshing

Modified: trunk/mono-tools/gui-compare/CompareContext.cs
===================================================================
--- trunk/mono-tools/gui-compare/CompareContext.cs      2008-01-02 20:52:10 UTC 
(rev 92125)
+++ trunk/mono-tools/gui-compare/CompareContext.cs      2008-01-02 20:56:16 UTC 
(rev 92126)
@@ -319,6 +319,8 @@
                                                string assembly_access = 
((CompMember)assembly_list[a]).GetMemberAccess();
                                                if (reference_access != 
assembly_access) {
                                                        comparison.status = 
ComparisonStatus.Error;
+                                                       
+                                                       // Try to give some 
hints to the developer
                                                        comparison.messages.Add 
(String.Format ("reference access is '<i>{0}</i>', target access is 
'<i>{1}</i>'",
                                                                                
                reference_access, assembly_access));
                                                }

Modified: trunk/mono-tools/gui-compare/MainWindow.cs
===================================================================
--- trunk/mono-tools/gui-compare/MainWindow.cs  2008-01-02 20:52:10 UTC (rev 
92125)
+++ trunk/mono-tools/gui-compare/MainWindow.cs  2008-01-02 20:56:16 UTC (rev 
92126)
@@ -162,6 +162,7 @@
                                if (n != null) msgs = n.messages;
                                if (msgs != null && msgs.Count > 0) {
                                        sb.Append ("<b>Errors:</b>\n");
+
                                        for (int i = 0; i < msgs.Count; i ++) {
                                                sb.AppendFormat ("\t<b>{0}</b>: 
{1}\n", i + 1, msgs[i]);
                                        }

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to