Author: adar
Date: 2007-05-15 07:57:31 -0400 (Tue, 15 May 2007)
New Revision: 77397

Modified:
   trunk/mcs/class/System/System.ComponentModel.Design.Serialization/ChangeLog
   
trunk/mcs/class/System/System.ComponentModel.Design.Serialization/ContextStack.cs
   trunk/mcs/class/System/System.ComponentModel.Design/Changelog
   trunk/mcs/class/System/System.ComponentModel.Design/MenuCommand.cs
   trunk/mcs/class/System/System.ComponentModel/AttributeCollection.cs
   trunk/mcs/class/System/System.ComponentModel/ChangeLog
   trunk/mcs/class/System/System.ComponentModel/Container.cs
   trunk/mcs/class/System/System.ComponentModel/DefaultValueAttribute.cs
   trunk/mcs/class/System/System.ComponentModel/EventHandlerList.cs
   trunk/mcs/class/System/System.ComponentModel/MemberDescriptor.cs
   trunk/mcs/class/System/System.ComponentModel/PropertyDescriptor.cs
   trunk/mcs/class/System/System.ComponentModel/TypeDescriptor.cs
   trunk/mcs/class/System/System.Diagnostics/ChangeLog
   trunk/mcs/class/System/System.Diagnostics/Trace.cs
Log:
2007-05-15 Adar Wesley <[EMAIL PROTECTED]>

        * AttributeCollection.cs: added missing method FromExisting.

        * Container.cs: added missing method ValidateName

        * DefaultValueAttribute.cs: added missing method SetValue.

        * EventHandlerList.cs: added missing method AddHandlers.

        * MemberDescriptor.cs: added missing method GetInvocationTarget.

        * PropertyDescriptor.cs: added missing method GetValueChangedHandler.

        * TypeDescriptor.cs: added missing methods CreateInstance, 
GetFullComponentName,
        GetClassName, GetReflectionType, CreateAssociation, GetAssociation,
        RemoveAssociation, RemoveAssociations.

        * MenuCommand.cs: added missing method overload Invoke

        * ContextStack.cs: added missing method Append.

        * Trace.cs: added missing method Refresh.



Modified: trunk/mcs/class/System/System.ComponentModel/AttributeCollection.cs
===================================================================
--- trunk/mcs/class/System/System.ComponentModel/AttributeCollection.cs 
2007-05-15 09:35:00 UTC (rev 77396)
+++ trunk/mcs/class/System/System.ComponentModel/AttributeCollection.cs 
2007-05-15 11:57:31 UTC (rev 77397)
@@ -54,6 +54,14 @@
                                        attrList.Add (attributes[i]);
                }
 
+#if NET_2_0
+               [MonoNotSupported("")]
+               public static AttributeCollection FromExisting 
(AttributeCollection existing, params Attribute [] newAttributes)
+               {
+                       throw new NotImplementedException ();
+               }
+#endif
+
                public bool Contains (Attribute attr)
                {
                        Attribute at = this [attr.GetType ()];

Modified: trunk/mcs/class/System/System.ComponentModel/ChangeLog
===================================================================
--- trunk/mcs/class/System/System.ComponentModel/ChangeLog      2007-05-15 
09:35:00 UTC (rev 77396)
+++ trunk/mcs/class/System/System.ComponentModel/ChangeLog      2007-05-15 
11:57:31 UTC (rev 77397)
@@ -1,3 +1,21 @@
+2007-05-15 Adar Wesley <[EMAIL PROTECTED]>
+
+       * AttributeCollection.cs: added missing method FromExisting.
+
+       * Container.cs: added missing method ValidateName
+
+       * DefaultValueAttribute.cs: added missing method SetValue.
+
+       * EventHandlerList.cs: added missing method AddHandlers.
+
+       * MemberDescriptor.cs: added missing method GetInvocationTarget.
+
+       * PropertyDescriptor.cs: added missing method GetValueChangedHandler.
+
+       * TypeDescriptor.cs: added missing methods CreateInstance, 
GetFullComponentName,
+       GetClassName, GetReflectionType, CreateAssociation, GetAssociation, 
+       RemoveAssociation, RemoveAssociations.
+
 2007-05-14  Vladimir Krasnov  <[EMAIL PROTECTED]>
 
        * PropertyDescriptorCollection.cs: fixed Find method, compare using

Modified: trunk/mcs/class/System/System.ComponentModel/Container.cs
===================================================================
--- trunk/mcs/class/System/System.ComponentModel/Container.cs   2007-05-15 
09:35:00 UTC (rev 77396)
+++ trunk/mcs/class/System/System.ComponentModel/Container.cs   2007-05-15 
11:57:31 UTC (rev 77397)
@@ -142,6 +142,14 @@
                        }
                }
 
+#if NET_2_0
+               [MonoNotSupported("")]
+               protected virtual void ValidateName (IComponent component, 
string name)
+               {
+                       throw new NotImplementedException ();
+               }
+#endif
+
                protected virtual ISite CreateSite (IComponent component, 
string name)
                {
                        return new DefaultSite (name, component, this);

Modified: trunk/mcs/class/System/System.ComponentModel/DefaultValueAttribute.cs
===================================================================
--- trunk/mcs/class/System/System.ComponentModel/DefaultValueAttribute.cs       
2007-05-15 09:35:00 UTC (rev 77396)
+++ trunk/mcs/class/System/System.ComponentModel/DefaultValueAttribute.cs       
2007-05-15 11:57:31 UTC (rev 77397)
@@ -103,6 +103,13 @@
                        get { return DefaultValue; }
                }
 
+#if NET_2_0
+               protected void SetValue (object value)
+               {
+                       DefaultValue = value;
+               }
+#endif
+
                public override bool Equals (object obj)
                {
                        if (!(obj is DefaultValueAttribute))

Modified: trunk/mcs/class/System/System.ComponentModel/EventHandlerList.cs
===================================================================
--- trunk/mcs/class/System/System.ComponentModel/EventHandlerList.cs    
2007-05-15 09:35:00 UTC (rev 77396)
+++ trunk/mcs/class/System/System.ComponentModel/EventHandlerList.cs    
2007-05-15 11:57:31 UTC (rev 77397)
@@ -68,6 +68,19 @@
                        entry.value = Delegate.Combine (entry.value, value);
                }
 
+#if NET_2_0
+               public void AddHandlers (EventHandlerList listToAddFrom)
+               {
+                       if (listToAddFrom == null) {
+                               return;
+                       }
+
+                       for (ListNode entry = listToAddFrom.head; entry != 
null; entry = entry.next) {
+                               AddHandler (entry.key, entry.value);
+                       }
+               }
+#endif
+
                public void RemoveHandler (object key, Delegate value)
                {
                        ListNode entry = FindEntry (key);

Modified: trunk/mcs/class/System/System.ComponentModel/MemberDescriptor.cs
===================================================================
--- trunk/mcs/class/System/System.ComponentModel/MemberDescriptor.cs    
2007-05-15 09:35:00 UTC (rev 77396)
+++ trunk/mcs/class/System/System.ComponentModel/MemberDescriptor.cs    
2007-05-15 11:57:31 UTC (rev 77397)
@@ -237,6 +237,14 @@
                return component;
         }
 
+#if NET_2_0
+               [MonoNotSupported("")]
+               protected virtual object GetInvocationTarget (Type type, object 
instance)
+               {
+                       throw new NotImplementedException ();
+               }
+#endif
+
         protected static MethodInfo FindMethod(Type componentClass, string 
name, 
             Type[ ] args, Type returnType)
         {

Modified: trunk/mcs/class/System/System.ComponentModel/PropertyDescriptor.cs
===================================================================
--- trunk/mcs/class/System/System.ComponentModel/PropertyDescriptor.cs  
2007-05-15 09:35:00 UTC (rev 77396)
+++ trunk/mcs/class/System/System.ComponentModel/PropertyDescriptor.cs  
2007-05-15 11:57:31 UTC (rev 77397)
@@ -158,6 +158,14 @@
                                notifiers [component] = handler;
                }
 
+#if NET_2_0
+               [MonoNotSupported("")]
+               protected internal EventHandler GetValueChangedHandler (object 
component)
+               {
+                       throw new NotImplementedException ();
+               }
+#endif
+
                protected virtual void OnValueChanged (object component, 
EventArgs e)
                {
                        if (notifiers == null)
@@ -231,3 +239,4 @@
        }
 }
 
+

Modified: trunk/mcs/class/System/System.ComponentModel/TypeDescriptor.cs
===================================================================
--- trunk/mcs/class/System/System.ComponentModel/TypeDescriptor.cs      
2007-05-15 09:35:00 UTC (rev 77396)
+++ trunk/mcs/class/System/System.ComponentModel/TypeDescriptor.cs      
2007-05-15 11:57:31 UTC (rev 77397)
@@ -51,6 +51,14 @@
        {
        }
 
+#if NET_2_0
+       [MonoNotSupported("")]
+       public static object CreateInstance (IServiceProvider provider, Type 
objectType, Type [] argTypes, object [] args)
+       {
+               throw new NotImplementedException ();
+       }
+#endif
+
        [MonoTODO]
        public static void AddEditorTable (Type editorBaseType, Hashtable table)
        {
@@ -181,6 +189,20 @@
                }
        }
 
+#if NET_2_0
+       [MonoNotSupported("")]
+       public static string GetFullComponentName (object component)
+       {
+               throw new NotImplementedException ();
+       }
+
+       [MonoNotSupported("")]
+       public static string GetClassName (Type componentType)
+       {
+               throw new NotImplementedException ();
+       }
+#endif
+
        public static TypeConverter GetConverter (object component)
        {
                return GetConverter (component, false);
@@ -522,6 +544,45 @@
                return GetTypeInfo (componentType).GetProperties (attributes);
        }
 
+#if NET_2_0
+       [MonoNotSupported ("")]
+       public static Type GetReflectionType (object instance)
+       {
+               throw new NotImplementedException ();
+       }
+
+       [MonoNotSupported ("")]
+       public static Type GetReflectionType (Type type)
+       {
+               throw new NotImplementedException ();
+       }
+
+       [MonoNotSupported("Associations not supported")]
+       public static void CreateAssociation (object primary, object secondary)
+       {
+               throw new NotImplementedException ();
+       }
+
+       [MonoNotSupported ("Associations not supported")]
+       public static object GetAssociation (Type type, object primary)
+       {
+               throw new NotImplementedException ();
+       }
+
+       [MonoNotSupported ("Associations not supported")]
+       public static void RemoveAssociation (object primary, object secondary)
+       {
+               throw new NotImplementedException ();
+       }
+
+       [MonoNotSupported ("Associations not supported")]
+       public static void RemoveAssociations (object primary)
+       {
+               throw new NotImplementedException ();
+       }
+
+#endif
+
        public static void SortDescriptorArray (IList infos)
        {
                string[] names = new string [infos.Count];

Modified: trunk/mcs/class/System/System.ComponentModel.Design/Changelog
===================================================================
--- trunk/mcs/class/System/System.ComponentModel.Design/Changelog       
2007-05-15 09:35:00 UTC (rev 77396)
+++ trunk/mcs/class/System/System.ComponentModel.Design/Changelog       
2007-05-15 11:57:31 UTC (rev 77397)
@@ -1,3 +1,7 @@
+2007-05-15 Adar Wesley <[EMAIL PROTECTED]>
+
+       * MenuCommand.cs: added missing method overload Invoke
+
 2006-09-11 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
 
        * ViewTechnology.cs: update for 2.0. Patch by Ivan N. Zlatev.

Modified: trunk/mcs/class/System/System.ComponentModel.Design/MenuCommand.cs
===================================================================
--- trunk/mcs/class/System/System.ComponentModel.Design/MenuCommand.cs  
2007-05-15 09:35:00 UTC (rev 77396)
+++ trunk/mcs/class/System/System.ComponentModel.Design/MenuCommand.cs  
2007-05-15 11:57:31 UTC (rev 77397)
@@ -118,6 +118,14 @@
                                handler (this, EventArgs.Empty);
                }
                
+#if NET_2_0
+               [MonoNotSupported("")]
+               public virtual void Invoke (object arg)
+               {
+                       throw new NotImplementedException ();
+               }
+#endif
+
                protected virtual void OnCommandChanged (EventArgs e)
                {
                        if (CommandChanged != null)

Modified: 
trunk/mcs/class/System/System.ComponentModel.Design.Serialization/ChangeLog
===================================================================
--- trunk/mcs/class/System/System.ComponentModel.Design.Serialization/ChangeLog 
2007-05-15 09:35:00 UTC (rev 77396)
+++ trunk/mcs/class/System/System.ComponentModel.Design.Serialization/ChangeLog 
2007-05-15 11:57:31 UTC (rev 77397)
@@ -1,3 +1,7 @@
+2007-05-15  Adar Wesley <[EMAIL PROTECTED]>
+
+       * ContextStack.cs: added missing method Append.
+
 2006-03-10  Raja R Harinath  <[EMAIL PROTECTED]>
 
        * CodeDomSerializerException.cs: Move to System.Design.dll.

Modified: 
trunk/mcs/class/System/System.ComponentModel.Design.Serialization/ContextStack.cs
===================================================================
--- 
trunk/mcs/class/System/System.ComponentModel.Design.Serialization/ContextStack.cs
   2007-05-15 09:35:00 UTC (rev 77396)
+++ 
trunk/mcs/class/System/System.ComponentModel.Design.Serialization/ContextStack.cs
   2007-05-15 11:57:31 UTC (rev 77397)
@@ -83,5 +83,13 @@
                {
                        stack.Push (context);
                }
+
+#if NET_2_0
+               [MonoNotSupported ("")]
+               public void Append (object context)
+               {
+                       throw new NotImplementedException ();
+               }
+#endif
        }
 }

Modified: trunk/mcs/class/System/System.Diagnostics/ChangeLog
===================================================================
--- trunk/mcs/class/System/System.Diagnostics/ChangeLog 2007-05-15 09:35:00 UTC 
(rev 77396)
+++ trunk/mcs/class/System/System.Diagnostics/ChangeLog 2007-05-15 11:57:31 UTC 
(rev 77397)
@@ -1,3 +1,7 @@
+2007-05-15 Adar Wesley <[EMAIL PROTECTED]>
+
+       * Trace.cs: added missing method Refresh.
+
 2007-05-14  Atsushi Enomoto  <[EMAIL PROTECTED]>
 
        * EventTypeFilter.cs

Modified: trunk/mcs/class/System/System.Diagnostics/Trace.cs
===================================================================
--- trunk/mcs/class/System/System.Diagnostics/Trace.cs  2007-05-15 09:35:00 UTC 
(rev 77396)
+++ trunk/mcs/class/System/System.Diagnostics/Trace.cs  2007-05-15 11:57:31 UTC 
(rev 77397)
@@ -41,6 +41,14 @@
 
                private Trace () {}
 
+#if NET_2_0
+               [MonoNotSupported ("")]
+               public static void Refresh ()
+               {
+                       throw new NotImplementedException ();
+               }
+#endif
+
                public static bool AutoFlush {
                        get {return TraceImpl.AutoFlush;}
                        set {TraceImpl.AutoFlush = value;}
@@ -260,3 +268,4 @@
        }
 }
 
+

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

Reply via email to