void Fill ()
		{
			TreeViewState tvs = new TreeViewState (list, 0);
			tvs.Save ();
			store.Clear ();
			foreach (var s in stashes)
				store.AppendValues (s, s.DateTime.LocalDateTime.ToString (), s.Comment);
			tvs.Load ();
		}
		void FillBranches ()
		{
			TreeViewState state = new TreeViewState (listBranches, 3);
			state.Save ();
			storeBranches.Clear ();
			string currentBranch = repo.GetCurrentBranch ();
			foreach (Branch branch in repo.GetBranches ()) {
				string text = branch.Name == currentBranch ? "<b>" + branch.Name + "</b>" : branch.Name;
				storeBranches.AppendValues (branch, text, branch.Tracking, branch.Name);
			}
			state.Load ();
		}
		void Fill ()
		{
			var tvs = new TreeViewState (list, 0);
			tvs.Save ();
			store.Clear ();
			foreach (var s in stashes) {
				string name = s.FriendlyName;
				string branch = GitRepository.GetStashBranchName (name);
				if (branch != null) {
					if (branch == "_tmp_")
						name = GettextCatalog.GetString ("Temporary stash created by {0}", BrandingService.ApplicationName);
					else
						name = GettextCatalog.GetString ("Local changes of branch '{0}'", branch);
				}
				store.AppendValues (s, s.Index.Author.When.LocalDateTime.ToString (), name);
			}
			tvs.Load ();
		}
		void Fill ()
		{
			TreeViewState tvs = new TreeViewState (list, 0);
			tvs.Save ();
			store.Clear ();
			foreach (var s in stashes) {
				string name = s.Comment;
				string branch = GitRepository.GetStashBranchName (name);
				if (branch != null) {
					if (branch == "_tmp_")
						name = GettextCatalog.GetString ("Temporary stash created by MonoDevelop");
					else
						name = GettextCatalog.GetString ("Local changes of branch '{0}'", branch);
				}
				store.AppendValues (s, s.DateTime.LocalDateTime.ToString (), name);
			}
			tvs.Load ();
		}
		void FillRemotes ()
		{
			TreeViewState state = new TreeViewState (treeRemotes, 4);
			state.Save ();
			storeRemotes.Clear ();
			string currentRemote = repo.GetCurrentRemote ();
			foreach (RemoteSource remote in repo.GetRemotes ()) {
				string text = remote.Name == currentRemote ? "<b>" + remote.Name + "</b>" : remote.Name;
				string url;
				if (remote.FetchUrl == remote.PushUrl)
					url = remote.FetchUrl;
				else
					url = remote.FetchUrl + " (fetch)\n" + remote.PushUrl + " (push)";
				TreeIter it = storeRemotes.AppendValues (remote, text, url, null, remote.Name);
				foreach (string branch in repo.GetRemoteBranches (remote.Name))
					storeRemotes.AppendValues (it, null, branch, null, branch, remote.Name + "/" + branch);
			}
			state.Load ();
		}
		void FillTags ()
		{
			TreeViewState state = new TreeViewState (listTags, 1);
			state.Save ();
			storeTags.Clear ();
			foreach (string tag in repo.GetTags ()) {
				storeTags.AppendValues (tag);
			}
			state.Load ();
		}
 void FillRemotes()
 {
     TreeViewState state = new TreeViewState (treeRemotes, 4);
     state.Save ();
     storeRemotes.Clear ();
     string currentRemote = repo.GetCurrentRemote ();
     foreach (var remote in repo.GetRemotes ()) {
         string text = remote.Name == currentRemote ? "<b>" + remote.Name + "</b>" : remote.Name;
         string url = remote.Path;
         TreeIter it = storeRemotes.AppendValues (remote, text, url, null, remote.Name);
         foreach (string branch in repo.GetRemoteBranches (remote.Name))
             storeRemotes.AppendValues (it, null, branch, null, branch, remote.Name + "/" + branch);
     }
     state.Load ();
 }
		void FillRemotes ()
		{
			var state = new TreeViewState (treeRemotes, 4);
			state.Save ();
			storeRemotes.Clear ();
			string currentRemote = repo.GetCurrentRemote ();
			foreach (Remote remote in repo.GetRemotes ()) {
				// Take into account fetch/push ref specs.
				string text = remote.Name == currentRemote ? "<b>" + remote.Name + "</b>" : remote.Name;
				string url = remote.Url;
				TreeIter it = storeRemotes.AppendValues (remote, text, url, null, remote.Name);
				foreach (string branch in repo.GetRemoteBranches (remote.Name))
					storeRemotes.AppendValues (it, null, branch, null, branch, remote.Name + "/" + branch);
			}
			state.Load ();
		}
Example #9
0
		public void Fill ()
		{
			TreeViewState s = new TreeViewState (treeView, 1);
			s.Save ();
			store.Clear ();
			
			if (checkShowCats.Active) {
				foreach (CounterCategory cat in App.Service.GetCategories ())
					AppendCategory (cat);
			} else {
				foreach (Counter c in App.Service.GetCounters ()) {
					if (c is TimerCounter)
						AppendCounter (TreeIter.Zero, (TimerCounter) c);
				}
			}
		}