Author: adar
Date: 2007-05-15 08:09:04 -0400 (Tue, 15 May 2007)
New Revision: 77398
Modified:
branches/mainsoft/gh20/mcs/class/System/System.ComponentModel.Design.Serialization/ChangeLog
branches/mainsoft/gh20/mcs/class/System/System.ComponentModel.Design.Serialization/ContextStack.cs
branches/mainsoft/gh20/mcs/class/System/System.ComponentModel.Design/Changelog
branches/mainsoft/gh20/mcs/class/System/System.ComponentModel.Design/MenuCommand.cs
branches/mainsoft/gh20/mcs/class/System/System.ComponentModel/AttributeCollection.cs
branches/mainsoft/gh20/mcs/class/System/System.ComponentModel/ChangeLog
branches/mainsoft/gh20/mcs/class/System/System.ComponentModel/Container.cs
branches/mainsoft/gh20/mcs/class/System/System.ComponentModel/DefaultValueAttribute.cs
branches/mainsoft/gh20/mcs/class/System/System.ComponentModel/EventHandlerList.cs
branches/mainsoft/gh20/mcs/class/System/System.ComponentModel/MemberDescriptor.cs
branches/mainsoft/gh20/mcs/class/System/System.ComponentModel/PropertyDescriptor.cs
branches/mainsoft/gh20/mcs/class/System/System.ComponentModel/TypeDescriptor.cs
branches/mainsoft/gh20/mcs/class/System/System.Diagnostics/ChangeLog
branches/mainsoft/gh20/mcs/class/System/System.Diagnostics/Trace.cs
branches/mainsoft/gh20/mcs/class/System/System.Diagnostics/TraceListener.cs
Log:
merge -r 77396:77397 + TraceListener.cs by hand
Modified:
branches/mainsoft/gh20/mcs/class/System/System.ComponentModel/AttributeCollection.cs
===================================================================
---
branches/mainsoft/gh20/mcs/class/System/System.ComponentModel/AttributeCollection.cs
2007-05-15 11:57:31 UTC (rev 77397)
+++
branches/mainsoft/gh20/mcs/class/System/System.ComponentModel/AttributeCollection.cs
2007-05-15 12:09:04 UTC (rev 77398)
@@ -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:
branches/mainsoft/gh20/mcs/class/System/System.ComponentModel/ChangeLog
===================================================================
--- branches/mainsoft/gh20/mcs/class/System/System.ComponentModel/ChangeLog
2007-05-15 11:57:31 UTC (rev 77397)
+++ branches/mainsoft/gh20/mcs/class/System/System.ComponentModel/ChangeLog
2007-05-15 12:09:04 UTC (rev 77398)
@@ -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:
branches/mainsoft/gh20/mcs/class/System/System.ComponentModel/Container.cs
===================================================================
--- branches/mainsoft/gh20/mcs/class/System/System.ComponentModel/Container.cs
2007-05-15 11:57:31 UTC (rev 77397)
+++ branches/mainsoft/gh20/mcs/class/System/System.ComponentModel/Container.cs
2007-05-15 12:09:04 UTC (rev 77398)
@@ -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:
branches/mainsoft/gh20/mcs/class/System/System.ComponentModel/DefaultValueAttribute.cs
===================================================================
---
branches/mainsoft/gh20/mcs/class/System/System.ComponentModel/DefaultValueAttribute.cs
2007-05-15 11:57:31 UTC (rev 77397)
+++
branches/mainsoft/gh20/mcs/class/System/System.ComponentModel/DefaultValueAttribute.cs
2007-05-15 12:09:04 UTC (rev 77398)
@@ -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:
branches/mainsoft/gh20/mcs/class/System/System.ComponentModel/EventHandlerList.cs
===================================================================
---
branches/mainsoft/gh20/mcs/class/System/System.ComponentModel/EventHandlerList.cs
2007-05-15 11:57:31 UTC (rev 77397)
+++
branches/mainsoft/gh20/mcs/class/System/System.ComponentModel/EventHandlerList.cs
2007-05-15 12:09:04 UTC (rev 77398)
@@ -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:
branches/mainsoft/gh20/mcs/class/System/System.ComponentModel/MemberDescriptor.cs
===================================================================
---
branches/mainsoft/gh20/mcs/class/System/System.ComponentModel/MemberDescriptor.cs
2007-05-15 11:57:31 UTC (rev 77397)
+++
branches/mainsoft/gh20/mcs/class/System/System.ComponentModel/MemberDescriptor.cs
2007-05-15 12:09:04 UTC (rev 77398)
@@ -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:
branches/mainsoft/gh20/mcs/class/System/System.ComponentModel/PropertyDescriptor.cs
===================================================================
---
branches/mainsoft/gh20/mcs/class/System/System.ComponentModel/PropertyDescriptor.cs
2007-05-15 11:57:31 UTC (rev 77397)
+++
branches/mainsoft/gh20/mcs/class/System/System.ComponentModel/PropertyDescriptor.cs
2007-05-15 12:09:04 UTC (rev 77398)
@@ -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:
branches/mainsoft/gh20/mcs/class/System/System.ComponentModel/TypeDescriptor.cs
===================================================================
---
branches/mainsoft/gh20/mcs/class/System/System.ComponentModel/TypeDescriptor.cs
2007-05-15 11:57:31 UTC (rev 77397)
+++
branches/mainsoft/gh20/mcs/class/System/System.ComponentModel/TypeDescriptor.cs
2007-05-15 12:09:04 UTC (rev 77398)
@@ -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:
branches/mainsoft/gh20/mcs/class/System/System.ComponentModel.Design/Changelog
===================================================================
---
branches/mainsoft/gh20/mcs/class/System/System.ComponentModel.Design/Changelog
2007-05-15 11:57:31 UTC (rev 77397)
+++
branches/mainsoft/gh20/mcs/class/System/System.ComponentModel.Design/Changelog
2007-05-15 12:09:04 UTC (rev 77398)
@@ -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:
branches/mainsoft/gh20/mcs/class/System/System.ComponentModel.Design/MenuCommand.cs
===================================================================
---
branches/mainsoft/gh20/mcs/class/System/System.ComponentModel.Design/MenuCommand.cs
2007-05-15 11:57:31 UTC (rev 77397)
+++
branches/mainsoft/gh20/mcs/class/System/System.ComponentModel.Design/MenuCommand.cs
2007-05-15 12:09:04 UTC (rev 77398)
@@ -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:
branches/mainsoft/gh20/mcs/class/System/System.ComponentModel.Design.Serialization/ChangeLog
===================================================================
---
branches/mainsoft/gh20/mcs/class/System/System.ComponentModel.Design.Serialization/ChangeLog
2007-05-15 11:57:31 UTC (rev 77397)
+++
branches/mainsoft/gh20/mcs/class/System/System.ComponentModel.Design.Serialization/ChangeLog
2007-05-15 12:09:04 UTC (rev 77398)
@@ -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:
branches/mainsoft/gh20/mcs/class/System/System.ComponentModel.Design.Serialization/ContextStack.cs
===================================================================
---
branches/mainsoft/gh20/mcs/class/System/System.ComponentModel.Design.Serialization/ContextStack.cs
2007-05-15 11:57:31 UTC (rev 77397)
+++
branches/mainsoft/gh20/mcs/class/System/System.ComponentModel.Design.Serialization/ContextStack.cs
2007-05-15 12:09:04 UTC (rev 77398)
@@ -83,5 +83,13 @@
{
stack.Push (context);
}
+
+#if NET_2_0
+ [MonoNotSupported ("")]
+ public void Append (object context)
+ {
+ throw new NotImplementedException ();
+ }
+#endif
}
}
Modified: branches/mainsoft/gh20/mcs/class/System/System.Diagnostics/ChangeLog
===================================================================
--- branches/mainsoft/gh20/mcs/class/System/System.Diagnostics/ChangeLog
2007-05-15 11:57:31 UTC (rev 77397)
+++ branches/mainsoft/gh20/mcs/class/System/System.Diagnostics/ChangeLog
2007-05-15 12:09:04 UTC (rev 77398)
@@ -1,3 +1,27 @@
+2007-05-15 Adar Wesley <[EMAIL PROTECTED]>
+
+ * Trace.cs: added missing method Refresh.
+
+2007-05-14 Atsushi Enomoto <[EMAIL PROTECTED]>
+
+ * EventTypeFilter.cs
+ TraceFilter.cs
+ SourceFilter.cs
+ SwitchLevelAttribute.cs
+ DelimitedListTraceListener.cs
+ SwitchAttribute.cs : new files in 2.0.
+ * DiagnosticsConfigurationHandler.cs : partial support for named
+ shared listeners.
+ * XmlWriterTraceListener.cs : cosmetic corcompare fixes. Added
+ missing todos.
+ * TraceListener.cs : added missing 2.0 stuff. Implemented Filter.
+ * DefaultTraceListener.cs : trivial ComVisible fix.
+
+2007-05-10 Atsushi Enomoto <[EMAIL PROTECTED]>
+
+ * TextWriterTraceListener.cs : open log file in readwrite share mode.
+ This fixes bug #81296.
+
2007-05-08 Igor Zelmanovich <[EMAIL PROTECTED]>
* TraceImpl.cs:
Modified: branches/mainsoft/gh20/mcs/class/System/System.Diagnostics/Trace.cs
===================================================================
--- branches/mainsoft/gh20/mcs/class/System/System.Diagnostics/Trace.cs
2007-05-15 11:57:31 UTC (rev 77397)
+++ branches/mainsoft/gh20/mcs/class/System/System.Diagnostics/Trace.cs
2007-05-15 12:09:04 UTC (rev 77398)
@@ -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 @@
}
}
+
Modified:
branches/mainsoft/gh20/mcs/class/System/System.Diagnostics/TraceListener.cs
===================================================================
--- branches/mainsoft/gh20/mcs/class/System/System.Diagnostics/TraceListener.cs
2007-05-15 11:57:31 UTC (rev 77397)
+++ branches/mainsoft/gh20/mcs/class/System/System.Diagnostics/TraceListener.cs
2007-05-15 12:09:04 UTC (rev 77398)
@@ -119,6 +119,13 @@
{
}
+#if NET_2_0
+ protected internal virtual string [] GetSupportedAttributes ()
+ {
+ return null;
+ }
+#endif
+
public virtual void Fail (string message)
{
Fail (message, "");
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches