~and471/+junk/do-with-docky

« back to all changes in this revision

Viewing changes to Do/src/Do.UI/ManagePluginsPreferencesWidget.cs

  • Committer: rugby471 at gmail
  • Date: 2010-10-15 16:08:38 UTC
  • Revision ID: rugby471@gmail.com-20101015160838-z9m3utbf7bxzb5ty
reverted to before docky removal

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
 
46
46
                const string WikiPage = "http://do.davebsd.com/wiki/{0}{1}";
47
47
                const string PluginWikiPageFormat = "_Plugin";
 
48
                const string DockletWikiPageFormat = "_Docklet";
48
49
 
49
50
                PluginNodeView nview;
50
51
                SearchEntry search_entry;
172
173
                                PluginManager.Disable (id);     
173
174
                        UpdateButtonState ();
174
175
                }
 
176
                
 
177
                void OnBtnRefreshClicked (object sender, EventArgs e)
 
178
                {
 
179
                        nview.Refresh (true);
 
180
                        UpdateButtonState ();
 
181
                }
175
182
 
176
183
                void OnBtnConfigurePluginClicked (object sender, EventArgs e)
177
184
                {
198
205
                                        // use it instead of trying to guess the wiki page.
199
206
                                        if (!string.IsNullOrEmpty (a.Description.Url))
200
207
                                                url = a.Description.Url;
201
 
                                        url = string.Format (WikiPage, name, PluginWikiPageFormat);
 
208
                                        if (PluginManager.PluginClassifiesAs (a, "Docklets"))
 
209
                                                url = string.Format (WikiPage, name, DockletWikiPageFormat);
 
210
                                        else
 
211
                                                url = string.Format (WikiPage, name, PluginWikiPageFormat);
202
212
                                        
203
213
                                        Services.Environment.OpenUrl (url);
204
214
                                } catch (Exception e) {