Author: lluis
Date: 2007-05-04 09:55:23 -0400 (Fri, 04 May 2007)
New Revision: 76707

Modified:
   trunk/monodevelop/Core/src/Tools/mdhost/ChangeLog
   trunk/monodevelop/Core/src/Tools/mdhost/Makefile.am
   trunk/monodevelop/Core/src/Tools/mdhost/mdhost.mdp
   trunk/monodevelop/Core/src/Tools/mdhost/src/mdhost.cs
Log:
* src/mdhost.cs, Makefile.am, mdhost.mdp: Migration to Mono.Addins.

Modified: trunk/monodevelop/Core/src/Tools/mdhost/ChangeLog
===================================================================
--- trunk/monodevelop/Core/src/Tools/mdhost/ChangeLog   2007-05-04 13:51:18 UTC 
(rev 76706)
+++ trunk/monodevelop/Core/src/Tools/mdhost/ChangeLog   2007-05-04 13:55:23 UTC 
(rev 76707)
@@ -1,3 +1,16 @@
+2007-05-04  Lluis Sanchez Gual <[EMAIL PROTECTED]> 
+
+       * Mono.Addins.mdp: Updated.
+       * Mono.Addins/ExtensionContext.cs: Fixed GetExtensionObjects overload
+         which was not using the correct reuseCachedInstance value.
+       * Mono.Addins/ExtensionTree.cs: Improved error message. When looking
+         for a type in an assembly, avoid throwing an exception too early,
+         since it may be found in other assemblies.
+       * Mono.Addins.Database/AddinDatabase.cs: In the addin info cache, also
+         store information about unsuccessful lookups, to avoid looking for
+         an add-in again if we found that it doesn't exist. In Update(),
+         don't use verbose output by default.
+
 2007-04-26  Lluis Sanchez Gual <[EMAIL PROTECTED]> 
 
        * mdhost.mdp: Don't copy referenced assemblies.

Modified: trunk/monodevelop/Core/src/Tools/mdhost/Makefile.am
===================================================================
--- trunk/monodevelop/Core/src/Tools/mdhost/Makefile.am 2007-05-04 13:51:18 UTC 
(rev 76706)
+++ trunk/monodevelop/Core/src/Tools/mdhost/Makefile.am 2007-05-04 13:55:23 UTC 
(rev 76707)
@@ -7,8 +7,9 @@
 all: $(ASSEMBLY)
 
 REFS = -r:$(top_builddir)/build/bin/MonoDevelop.Core.dll \
-       /r:System.Runtime.Remoting \
-       /r:Mono.Posix
+       -r:System.Runtime.Remoting \
+       -r:$(top_builddir)/build/bin/Mono.Addins.dll \
+       -r:Mono.Posix
        
 $(ASSEMBLY): $(build_sources)
        $(CSC) $(CSC_FLAGS) $(build_sources) $(REFS) -out:$(ASSEMBLY)

Modified: trunk/monodevelop/Core/src/Tools/mdhost/mdhost.mdp
===================================================================
--- trunk/monodevelop/Core/src/Tools/mdhost/mdhost.mdp  2007-05-04 13:51:18 UTC 
(rev 76706)
+++ trunk/monodevelop/Core/src/Tools/mdhost/mdhost.mdp  2007-05-04 13:55:23 UTC 
(rev 76707)
@@ -21,6 +21,7 @@
     <ProjectReference type="Project" localcopy="False" 
refto="MonoDevelop.Core" />
     <ProjectReference type="Gac" localcopy="False" 
refto="System.Runtime.Remoting, Version=2.0.0.0, Culture=neutral, 
PublicKeyToken=b77a5c561934e089" />
     <ProjectReference type="Gac" localcopy="False" refto="Mono.Posix, 
Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" />
+    <ProjectReference type="Assembly" localcopy="True" 
refto="../../../../contrib/Mono.Addins.dll" />
   </References>
   <DeploymentInformation strategy="File">
     <excludeFiles />

Modified: trunk/monodevelop/Core/src/Tools/mdhost/src/mdhost.cs
===================================================================
--- trunk/monodevelop/Core/src/Tools/mdhost/src/mdhost.cs       2007-05-04 
13:51:18 UTC (rev 76706)
+++ trunk/monodevelop/Core/src/Tools/mdhost/src/mdhost.cs       2007-05-04 
13:55:23 UTC (rev 76707)
@@ -39,6 +39,7 @@
 using System.Reflection;
 using System.Collections;
 using Mono.Remoting.Channels.Unix;
+using Mono.Addins;
 
 public class MonoDevelopProcessHost
 {
@@ -111,9 +112,9 @@
        
        public void LoadAddins (string[] addinIds)
        {
-               Runtime.Initialize ();
+               Runtime.Initialize (false);
                foreach (string ad in addinIds)
-                       Runtime.AddInService.PreloadAddin (null, ad);
+                       AddinManager.LoadAddin (null, ad);
        }
        
        public RemoteProcessObject CreateInstance (string fullTypeName)

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

Reply via email to