~ubuntu-branches/ubuntu/oneiric/monodevelop/oneiric

« back to all changes in this revision

Viewing changes to src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/AddinUpdateHandler.cs

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2011-06-27 17:03:13 UTC
  • mto: (1.8.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 54.
  • Revision ID: james.westby@ubuntu.com-20110627170313-6cvz3s19x6e9hqe9
ImportĀ upstreamĀ versionĀ 2.5.92+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
//
28
28
 
29
29
using System;
 
30
using System.Linq;
30
31
using System.Threading;
31
32
 
32
33
using Gtk;
37
38
using MonoDevelop.Components.Commands;
38
39
using MonoDevelop.Core.ProgressMonitoring;
39
40
using MonoDevelop.Ide.ProgressMonitoring;
 
41
using MonoDevelop.Ide.Updater;
40
42
 
41
43
namespace MonoDevelop.Ide.Gui
42
44
{
82
84
                                t.Start ();
83
85
                        } else {
84
86
                                updates = Runtime.AddinSetupService.Repositories.GetAvailableUpdates ();
85
 
                                if (updates.Length > 0)
 
87
                                if (updates.Any (u => UpdateRank.Minor != UpdateService.GetUpdateRank (u.Addin.Properties.GetPropertyValue ("UpdateRank"))))
86
88
                                        WarnAvailableUpdates ();
87
89
                        }
88
90
                }
134
136
                        
135
137
                        AddinManagerWindow.Run (IdeApp.Workbench.RootWindow);
136
138
                }
 
139
                
 
140
                internal static void QueryAddinUpdates ()
 
141
                {
 
142
                        AggregatedProgressMonitor monitor = UpdateMonitor;
 
143
                        if (monitor != null)
 
144
                                monitor.AsyncOperation.WaitForCompleted ();
 
145
                }
137
146
        }
138
147
}
139
148