Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdar Wesley <adar@mono-cvs.ximian.com>2007-05-15 15:57:31 +0400
committerAdar Wesley <adar@mono-cvs.ximian.com>2007-05-15 15:57:31 +0400
commitfa26c82574d1f0e95c2371e0455a1ccd5a20dc8a (patch)
treeba6a9aa45fb81a646b6f189326161f5e3b386314
parentc7d897bbf41eddb6d8cebe63b1b9374fcb043c01 (diff)
2007-05-15 Adar Wesley <adarw@mainsoft.com>
* 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. svn path=/trunk/mcs/; revision=77397
-rw-r--r--mcs/class/System/System.ComponentModel.Design.Serialization/ChangeLog4
-rw-r--r--mcs/class/System/System.ComponentModel.Design.Serialization/ContextStack.cs8
-rw-r--r--mcs/class/System/System.ComponentModel.Design/Changelog4
-rw-r--r--mcs/class/System/System.ComponentModel.Design/MenuCommand.cs8
-rw-r--r--mcs/class/System/System.ComponentModel/AttributeCollection.cs8
-rw-r--r--mcs/class/System/System.ComponentModel/ChangeLog18
-rw-r--r--mcs/class/System/System.ComponentModel/Container.cs8
-rw-r--r--mcs/class/System/System.ComponentModel/DefaultValueAttribute.cs7
-rw-r--r--mcs/class/System/System.ComponentModel/EventHandlerList.cs13
-rw-r--r--mcs/class/System/System.ComponentModel/MemberDescriptor.cs8
-rw-r--r--mcs/class/System/System.ComponentModel/PropertyDescriptor.cs9
-rw-r--r--mcs/class/System/System.ComponentModel/TypeDescriptor.cs61
-rw-r--r--mcs/class/System/System.Diagnostics/ChangeLog4
-rw-r--r--mcs/class/System/System.Diagnostics/Trace.cs9
14 files changed, 169 insertions, 0 deletions
diff --git a/mcs/class/System/System.ComponentModel.Design.Serialization/ChangeLog b/mcs/class/System/System.ComponentModel.Design.Serialization/ChangeLog
index 41fe1e9c49c..478ce54e548 100644
--- a/mcs/class/System/System.ComponentModel.Design.Serialization/ChangeLog
+++ b/mcs/class/System/System.ComponentModel.Design.Serialization/ChangeLog
@@ -1,3 +1,7 @@
+2007-05-15 Adar Wesley <adarw@mainsoft.com>
+
+ * ContextStack.cs: added missing method Append.
+
2006-03-10 Raja R Harinath <rharinath@novell.com>
* CodeDomSerializerException.cs: Move to System.Design.dll.
diff --git a/mcs/class/System/System.ComponentModel.Design.Serialization/ContextStack.cs b/mcs/class/System/System.ComponentModel.Design.Serialization/ContextStack.cs
index 90d5ccd99eb..7c1bc952245 100644
--- a/mcs/class/System/System.ComponentModel.Design.Serialization/ContextStack.cs
+++ b/mcs/class/System/System.ComponentModel.Design.Serialization/ContextStack.cs
@@ -83,5 +83,13 @@ namespace System.ComponentModel.Design.Serialization
{
stack.Push (context);
}
+
+#if NET_2_0
+ [MonoNotSupported ("")]
+ public void Append (object context)
+ {
+ throw new NotImplementedException ();
+ }
+#endif
}
}
diff --git a/mcs/class/System/System.ComponentModel.Design/Changelog b/mcs/class/System/System.ComponentModel.Design/Changelog
index b444b997c62..881b120d35c 100644
--- a/mcs/class/System/System.ComponentModel.Design/Changelog
+++ b/mcs/class/System/System.ComponentModel.Design/Changelog
@@ -1,3 +1,7 @@
+2007-05-15 Adar Wesley <adarw@mainsoft.com>
+
+ * MenuCommand.cs: added missing method overload Invoke
+
2006-09-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* ViewTechnology.cs: update for 2.0. Patch by Ivan N. Zlatev.
diff --git a/mcs/class/System/System.ComponentModel.Design/MenuCommand.cs b/mcs/class/System/System.ComponentModel.Design/MenuCommand.cs
index 48fe2358a17..436596e8aac 100644
--- a/mcs/class/System/System.ComponentModel.Design/MenuCommand.cs
+++ b/mcs/class/System/System.ComponentModel.Design/MenuCommand.cs
@@ -118,6 +118,14 @@ namespace System.ComponentModel.Design
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)
diff --git a/mcs/class/System/System.ComponentModel/AttributeCollection.cs b/mcs/class/System/System.ComponentModel/AttributeCollection.cs
index ed36edd9fea..5d7f277cc6b 100644
--- a/mcs/class/System/System.ComponentModel/AttributeCollection.cs
+++ b/mcs/class/System/System.ComponentModel/AttributeCollection.cs
@@ -54,6 +54,14 @@ namespace System.ComponentModel
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 ()];
diff --git a/mcs/class/System/System.ComponentModel/ChangeLog b/mcs/class/System/System.ComponentModel/ChangeLog
index 4a0ebf2f19b..0f4a79e60bd 100644
--- a/mcs/class/System/System.ComponentModel/ChangeLog
+++ b/mcs/class/System/System.ComponentModel/ChangeLog
@@ -1,3 +1,21 @@
+2007-05-15 Adar Wesley <adarw@mainsoft.com>
+
+ * 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 <vladimirk@mainsoft.com>
* PropertyDescriptorCollection.cs: fixed Find method, compare using
diff --git a/mcs/class/System/System.ComponentModel/Container.cs b/mcs/class/System/System.ComponentModel/Container.cs
index 3d502ca506d..9839663e880 100644
--- a/mcs/class/System/System.ComponentModel/Container.cs
+++ b/mcs/class/System/System.ComponentModel/Container.cs
@@ -142,6 +142,14 @@ namespace System.ComponentModel {
}
}
+#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);
diff --git a/mcs/class/System/System.ComponentModel/DefaultValueAttribute.cs b/mcs/class/System/System.ComponentModel/DefaultValueAttribute.cs
index 7208f20143b..d3836a49c2f 100644
--- a/mcs/class/System/System.ComponentModel/DefaultValueAttribute.cs
+++ b/mcs/class/System/System.ComponentModel/DefaultValueAttribute.cs
@@ -103,6 +103,13 @@ namespace System.ComponentModel
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))
diff --git a/mcs/class/System/System.ComponentModel/EventHandlerList.cs b/mcs/class/System/System.ComponentModel/EventHandlerList.cs
index 3a0f635a39c..7dabcb3e2c3 100644
--- a/mcs/class/System/System.ComponentModel/EventHandlerList.cs
+++ b/mcs/class/System/System.ComponentModel/EventHandlerList.cs
@@ -68,6 +68,19 @@ namespace System.ComponentModel {
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);
diff --git a/mcs/class/System/System.ComponentModel/MemberDescriptor.cs b/mcs/class/System/System.ComponentModel/MemberDescriptor.cs
index ef8bb5938fc..078b8c263ab 100644
--- a/mcs/class/System/System.ComponentModel/MemberDescriptor.cs
+++ b/mcs/class/System/System.ComponentModel/MemberDescriptor.cs
@@ -237,6 +237,14 @@ namespace System.ComponentModel
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)
{
diff --git a/mcs/class/System/System.ComponentModel/PropertyDescriptor.cs b/mcs/class/System/System.ComponentModel/PropertyDescriptor.cs
index 2c483ba1a66..d8859430647 100644
--- a/mcs/class/System/System.ComponentModel/PropertyDescriptor.cs
+++ b/mcs/class/System/System.ComponentModel/PropertyDescriptor.cs
@@ -158,6 +158,14 @@ namespace System.ComponentModel
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 @@ namespace System.ComponentModel
}
}
+
diff --git a/mcs/class/System/System.ComponentModel/TypeDescriptor.cs b/mcs/class/System/System.ComponentModel/TypeDescriptor.cs
index 76860b32aeb..ef8a2651099 100644
--- a/mcs/class/System/System.ComponentModel/TypeDescriptor.cs
+++ b/mcs/class/System/System.ComponentModel/TypeDescriptor.cs
@@ -51,6 +51,14 @@ public sealed class TypeDescriptor
{
}
+#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 @@ public sealed class TypeDescriptor
}
}
+#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 @@ public sealed class TypeDescriptor
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];
diff --git a/mcs/class/System/System.Diagnostics/ChangeLog b/mcs/class/System/System.Diagnostics/ChangeLog
index 56cf62c8bcb..3d83a237414 100644
--- a/mcs/class/System/System.Diagnostics/ChangeLog
+++ b/mcs/class/System/System.Diagnostics/ChangeLog
@@ -1,3 +1,7 @@
+2007-05-15 Adar Wesley <adarw@mainsoft.com>
+
+ * Trace.cs: added missing method Refresh.
+
2007-05-14 Atsushi Enomoto <atsushi@ximian.com>
* EventTypeFilter.cs
diff --git a/mcs/class/System/System.Diagnostics/Trace.cs b/mcs/class/System/System.Diagnostics/Trace.cs
index cc36a542801..a505fdc95ca 100644
--- a/mcs/class/System/System.Diagnostics/Trace.cs
+++ b/mcs/class/System/System.Diagnostics/Trace.cs
@@ -41,6 +41,14 @@ namespace System.Diagnostics {
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 @@ namespace System.Diagnostics {
}
}
+