Author: lluis
Date: 2005-10-06 06:08:12 -0400 (Thu, 06 Oct 2005)
New Revision: 51321

Modified:
   trunk/monodevelop/Core/src/MonoDevelop.Core/ChangeLog
   
trunk/monodevelop/Core/src/MonoDevelop.Core/MonoDevelop.Core.AddIns/AddInService.cs
   
trunk/monodevelop/Core/src/MonoDevelop.Core/MonoDevelop.Core.AddIns/ClassCodon.cs
Log:
2005-10-06  Lluis Sanchez Gual  <[EMAIL PROTECTED]>

        * MonoDevelop.Core.AddIns/ClassCodon.cs: Added Type property.
        * MonoDevelop.Core.AddIns/AddInService.cs: Added method for getting
        a codons list, not the items they build.



Modified: trunk/monodevelop/Core/src/MonoDevelop.Core/ChangeLog
===================================================================
--- trunk/monodevelop/Core/src/MonoDevelop.Core/ChangeLog       2005-10-06 
07:47:04 UTC (rev 51320)
+++ trunk/monodevelop/Core/src/MonoDevelop.Core/ChangeLog       2005-10-06 
10:08:12 UTC (rev 51321)
@@ -1,3 +1,9 @@
+2005-10-06  Lluis Sanchez Gual  <[EMAIL PROTECTED]>
+
+       * MonoDevelop.Core.AddIns/ClassCodon.cs: Added Type property.
+       * MonoDevelop.Core.AddIns/AddInService.cs: Added method for getting
+       a codons list, not the items they build.
+
 2005-10-04  Lluis Sanchez Gual  <[EMAIL PROTECTED]>
 
        * MonoDevelop.Core.AddIns/AddInTreeSingleton.cs: Created method

Modified: 
trunk/monodevelop/Core/src/MonoDevelop.Core/MonoDevelop.Core.AddIns/AddInService.cs
===================================================================
--- 
trunk/monodevelop/Core/src/MonoDevelop.Core/MonoDevelop.Core.AddIns/AddInService.cs
 2005-10-06 07:47:04 UTC (rev 51320)
+++ 
trunk/monodevelop/Core/src/MonoDevelop.Core/MonoDevelop.Core.AddIns/AddInService.cs
 2005-10-06 10:08:12 UTC (rev 51321)
@@ -187,7 +187,7 @@
                        
                        AddinSetupInfo iad = 
Runtime.SetupService.GetInstalledAddin (id, version);
                        if (iad == null)
-                               throw new ArgumentException ("The addin '" + id 
+ "' is not installed.");
+                               throw new ArgumentException ("The addin '" + id 
+ "' v" + version + " is not installed.");
                        
                        // If this addin has already been requested, bring it 
to the head
                        // of the list, so it is loaded earlier than before.
@@ -220,6 +220,18 @@
                        return AddInTreeSingleton.AddInTree.GetTreeNode 
(path).BuildChildItems(null).ToArray (itemType);
                }
                
+               public object[] GetTreeCodons (string path)
+               {
+                       PreloadAddins (null, path);
+                       IAddInTreeNode rootNode = 
AddInTreeSingleton.AddInTree.GetTreeNode (path);
+                       ArrayList list = new ArrayList ();
+                       foreach (DictionaryEntry de in rootNode.ChildNodes) {
+                               IAddInTreeNode node = (IAddInTreeNode) de.Value;
+                               list.Add (node.Codon);
+                       }
+                       return list.ToArray ();
+               }
+               
                public IAddInTreeNode GetTreeNode (string path)
                {
                        PreloadAddins (null, path);

Modified: 
trunk/monodevelop/Core/src/MonoDevelop.Core/MonoDevelop.Core.AddIns/ClassCodon.cs
===================================================================
--- 
trunk/monodevelop/Core/src/MonoDevelop.Core/MonoDevelop.Core.AddIns/ClassCodon.cs
   2005-10-06 07:47:04 UTC (rev 51320)
+++ 
trunk/monodevelop/Core/src/MonoDevelop.Core/MonoDevelop.Core.AddIns/ClassCodon.cs
   2005-10-06 10:08:12 UTC (rev 51321)
@@ -18,6 +18,11 @@
                /// Creates an item with the specified sub items. And the 
current
                /// Condition status for this item.
                /// </summary>
+               
+               public Type Type {
+                       get { return AddIn.GetType (Class); }
+               }
+               
                public override object BuildItem(object owner, ArrayList 
subItems, ConditionCollection conditions)
                {
                        Debug.Assert(Class != null && Class.Length > 0);

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

Reply via email to