Ejemplo n.º 1
0
		void SolutionItemAdded (object sender, SolutionItemChangeEventArgs e)
		{
			var project = e.SolutionItem as DotNetProject;
			if (project != null) {
				projectAdded (this, new DotNetProjectEventArgs (project));
			}
		}
		public static ProjectReloadedEventArgs Create (SolutionItemChangeEventArgs eventArgs)
		{
			DotNetProject newProject = eventArgs.SolutionItem as DotNetProject;
			DotNetProject oldProject = eventArgs.ReplacedItem as DotNetProject;
			if (eventArgs.Reloading && (newProject != null) && (oldProject != null)) {
				return new ProjectReloadedEventArgs (oldProject, newProject);
			}
			return null;
		}
Ejemplo n.º 3
0
		void OnItemsChangedInSolution (object sender, SolutionItemChangeEventArgs e)
		{
			if (!IsSolutionGroupPresent (e.Solution, rootTests))
				RebuildTests ();
		}
Ejemplo n.º 4
0
		void OnEntryRemoved (object sender, SolutionItemChangeEventArgs e)
		{
			ITreeBuilder tb = Context.GetTreeBuilder (e.SolutionItem);
			if (tb != null)
				tb.Remove ();
		}
Ejemplo n.º 5
0
		void OnEntryAdded (object sender, SolutionItemChangeEventArgs e)
		{
			ITreeBuilder tb = Context.GetTreeBuilder (e.SolutionItem.ParentSolution);
			if (tb != null) {
				tb.AddChild (e.SolutionItem, true);
				tb.Expanded = true;
			}
		}
Ejemplo n.º 6
0
		void OnSolutionItemAddedRemoved (object sender, SolutionItemChangeEventArgs e)
		{
			ITreeBuilder tb = Context.GetTreeBuilder (e.Solution);
			if (tb != null)
				tb.Update ();	// Update the entry count
		}
Ejemplo n.º 7
0
		static void OnSolutionItemRemoved (object sender, SolutionItemChangeEventArgs args)
		{
			if (args.SolutionItem is Project)
				Unload ((Project) args.SolutionItem);
		}
		void SolutionItemAddedOrRemoved (object sender, SolutionItemChangeEventArgs e)
		{
			var solutionManager = (MonoDevelopSolutionManager) GetSolutionManager (e.Solution);
			solutionManager.ClearProjectCache ();
		}
		void SolutionItemAdded (object sender, SolutionItemChangeEventArgs e)
		{
			if (!e.Reloading)
				return;

			var handler = ProjectReloaded;
			if (handler != null) {
				ProjectReloadedEventArgs reloadedEventArgs = ProjectReloadedEventArgs.Create (e);
				if (reloadedEventArgs != null) {
					handler (this, reloadedEventArgs);
				}
			}
		}
Ejemplo n.º 10
0
		void HandleSolutionSolutionItemRemoved (object sender, SolutionItemChangeEventArgs e)
		{
			if (e.SolutionItem is DotNetProject) {
				projectTimestamps.Remove ((DotNetProject)e.SolutionItem);
				OnChanged ();
			}
		}
		void OnEntryRemoved (object sender, SolutionItemChangeEventArgs e)
		{
			// If reloading, ignore the event. We handle it in OnEntryAdded.
			if (e.Reloading)
				return;

			ITreeBuilder tb = Context.GetTreeBuilder (e.SolutionItem);
			if (tb != null)
				tb.Remove ();
		}
		void OnEntryAdded (object sender, SolutionItemChangeEventArgs e)
		{
			ITreeBuilder tb = Context.GetTreeBuilder (e.SolutionItem.ParentFolder);
			if (tb != null) {
				if (e.Reloading)
					// When reloading we ignore the removed event, and we do an UpdateAll here. This will
					// replace the reloaded instance and will preserve the tree status
					tb.UpdateAll ();
				else {
					tb.AddChild (e.SolutionItem, true);
					tb.Expanded = true;
				}
			}
		}
Ejemplo n.º 13
0
 static void OnSolutionItemAdded(object o, SolutionItemChangeEventArgs args)
 {
     if (args.SolutionItem is DotNetProject) {
         OnProjectAdded((DotNetProject)args.SolutionItem);
     }
 }
Ejemplo n.º 14
0
		void HandleSolutionItemAdded (object sender, SolutionItemChangeEventArgs e)
		{
			var newProject = e.SolutionItem as Project;
			if (newProject == null)
				return;
			UpdateCommentTagsForProject (e.Solution, newProject);
		}