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

« back to all changes in this revision

Viewing changes to src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl.Dialogs/SelectRepositoryDialog.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:
21
21
                Gtk.TreeStore store;
22
22
                SelectRepositoryMode mode;
23
23
                ArrayList loadingRepos = new ArrayList ();
 
24
                IRepositoryEditor currentEditor;
24
25
                
25
26
                const int RepositoryCol = 0;
26
27
                const int RepoNameCol = 1;
111
112
 
112
113
                        VersionControlSystem vcs = (VersionControlSystem) systems [repCombo.Active];
113
114
                        repo = vcs.CreateRepositoryInstance ();
114
 
                        Gtk.Widget editor = vcs.CreateRepositoryEditor (repo);
115
 
                        repoContainer.Add (editor);
116
 
                        editor.Show ();
 
115
                        currentEditor = vcs.CreateRepositoryEditor (repo);
 
116
                        repoContainer.Add (currentEditor.Widget);
 
117
                        currentEditor.Widget.Show ();
117
118
                        UpdateRepoDescription ();
118
119
                }
119
120
                
240
241
                        loadingRepos.Add (FindRootRepo (repoIter));
241
242
                        UpdateControls ();
242
243
                        
243
 
                        Thread t = new Thread (delegate () {
 
244
                        ThreadPool.QueueUserWorkItem (delegate {
244
245
                                LoadRepoInfo (parent, repoIter, citer);
245
246
                        });
246
 
                        
247
 
                        t.Name = "VCS repository loader";
248
 
                        t.IsBackground = true;
249
 
                        t.Start ();
250
247
                }
251
248
                        
252
249
                Repository FindRootRepo (TreeIter iter)
325
322
                        if (mode == SelectRepositoryMode.Checkout)
326
323
                                buttonOk.Sensitive = entryFolder.Text.Length > 0;
327
324
                }
 
325
                
 
326
                protected virtual void OnButtonOkClicked (object sender, System.EventArgs e)
 
327
                {
 
328
                        if (notebook.Page == 0 && Repository != null) {
 
329
                                if (!currentEditor.Validate ())
 
330
                                        return;
 
331
                        }
 
332
                        Respond (ResponseType.Ok);
 
333
                }
328
334
        }
329
335
}