Exemplo n.º 1
0
        static void OnReferenceAdded(object o, ProjectReferenceEventArgs args)
        {
            if (!Util.IsQyotoReference(args.ProjectReference))
                return;

            Project project = args.Project as DotNetProject;
            if (project != null && project.ExtendedProperties["QyotoDesignInfo"] == null)
                QyotoDesignInfo.EnableProject(project);
        }
Exemplo n.º 2
0
 protected virtual void OnReferenceRemovedFromProject(ProjectReferenceEventArgs e)
 {
     if (ParentFolder == null && ParentSolution != null)
     {
         ParentSolution.OnReferenceRemovedFromProject(e);
     }
     if (ReferenceRemovedFromProject != null)
     {
         ReferenceRemovedFromProject(this, e);
     }
 }
Exemplo n.º 3
0
 void OnReferenceAddedToProject(ProjectReferenceEventArgs e)
 {
     if (ParentFolder == null && ParentSolution != null)
     {
         ParentSolution.OnReferenceAddedToProject(e);
     }
     if (ReferenceAddedToProject != null)
     {
         ReferenceAddedToProject(this, e);
     }
 }
		protected override void OnReferenceAddedToProject (ProjectReferenceEventArgs e)
		{
			base.OnReferenceAddedToProject (e);

			if (Project.Loading)
				return;

			if (RequiresMicrosoftBuild && e.ProjectReference.ReferenceType == ReferenceType.Project) {
				EnsureReferencedProjectsRequireMSBuild (true);
			}
		}
Exemplo n.º 5
0
        static void OnReferenceRemoved(object o, ProjectReferenceEventArgs args)
        {
            if (!Util.IsQyotoReference(args.ProjectReference))
                return;

            DotNetProject dnp = args.Project as DotNetProject;

            if (dnp != null) {
                if (MonoDevelop.Core.Gui.MessageService.Confirm("Qyoto features will be disabled by removing the qt-dotnet reference.", new MonoDevelop.Core.Gui.AlertButton("Disable Qyoto")))
                    QyotoDesignInfo.DisableProject(dnp);
                else
                    dnp.References.Add(new ProjectReference(ReferenceType.Gac, args.ProjectReference.StoredReference));
            }
        }
		void OnReferenceChanged (object s, ProjectReferenceEventArgs args)
		{
			if (args.Project.ParentSolution == folder.ParentSolution && NUnitProjectTestSuite.IsNUnitReference (args.ProjectReference))
				UpdateTests ();
		}
Exemplo n.º 7
0
		static void HandleDomReferencesUpdated (object sender, ProjectReferenceEventArgs e)
		{
			var project = (DotNetProject)sender;
			var dom = TypeSystemService.GetProjectContentWrapper (project);
			if (dom == null)
				return;
			NSObjectProjectInfo info;
			lock (infos) {
				if (!infos.TryGetValue (dom, out info))
					return;
			}
			info.SetNeedsUpdating ();
		}
Exemplo n.º 8
0
		void OnReferenceRemoved (object ob, ProjectReferenceEventArgs args)
		{
			if (disposed || !librariesUpdated)
				return;
			string pref = GetReferenceLibraryPath (args.ProjectReference);
			if (pref != null) {
				gproject.RemoveWidgetLibrary (pref);
				SaveProject (false);
			}
		}
Exemplo n.º 9
0
 internal protected virtual void OnReferenceRemovedFromProject(ProjectReferenceEventArgs e)
 {
     next.OnReferenceRemovedFromProject(e);
 }
Exemplo n.º 10
0
		protected override void OnReferenceAddedToProject (ProjectReferenceEventArgs e)
		{
			findPipelineEntries(e.ProjectReference);
			base.OnReferenceAddedToProject(e);
		}
Exemplo n.º 11
0
 internal void NotifyReferenceRemovedFromProject(object sender, ProjectReferenceEventArgs e)
 {
     OnReferenceRemovedFromProject(e);
 }
Exemplo n.º 12
0
		protected override void OnReferenceAddedToProject (ProjectReferenceEventArgs e)
		{
			base.OnReferenceAddedToProject (e);

			DotNetProject project = GetDotNetProject (e.ProjectReference);
			if (project != null) {
				EnsureBuildPackagingNuGetPackageIsInstalled (project);
			}
		}
 void OnAddReference(object sender, ProjectReferenceEventArgs e)
 {
     var p = e.Project as AbstractDProject;
     if (p != null) {
         var tb = Context.GetTreeBuilder (p.References);
         if (tb != null)
             tb.AddChild (e.ProjectReference);
     }
 }
		void OnRemoveReference (object sender, ProjectReferenceEventArgs e)
		{
			var p = e.Project as DotNetProject;
			if (p != null) {
				ITreeBuilder tb = Context.GetTreeBuilder (p.References);
				if (tb != null && tb.FindChild (e.ProjectReference, true))
					tb.Remove ();
			}
		}
Exemplo n.º 15
0
			internal protected override void OnReferenceRemovedFromProject (ProjectReferenceEventArgs e)
			{
				Project.OnReferenceRemovedFromProject (e);
			}
Exemplo n.º 16
0
			internal protected override void OnReferenceAddedToProject (ProjectReferenceEventArgs e)
			{
				Project.OnReferenceAddedToProject (e);
			}
		internal protected virtual void OnReferenceRemovedFromProject (ProjectReferenceEventArgs e)
		{
			next.OnReferenceRemovedFromProject (e);
		}
		internal protected virtual void OnReferenceAddedToProject (ProjectReferenceEventArgs e)
		{
			next.OnReferenceAddedToProject (e);
		}
Exemplo n.º 19
0
 internal protected virtual void OnReferenceAddedToProject(ProjectReferenceEventArgs e)
 {
     next.OnReferenceAddedToProject(e);
 }
		void OnRemoveReference (object sender, ProjectReferenceEventArgs e)
		{
			ITreeBuilder tb = Context.GetTreeBuilder (e.Project);
			if (tb != null) {
				if (tb.FindChild (e.ProjectReference, true))
					tb.Remove ();
			}
		}
Exemplo n.º 21
0
		protected override void OnReferenceRemovedFromProject (ProjectReferenceEventArgs e)
		{
			//short-circuit if the project is being deserialised
			if (Project.Loading) {
				base.OnReferenceAddedToProject (e);
				return;
			}

			UpdateWebConfigRefs ();

			base.OnReferenceRemovedFromProject (e);
		}
Exemplo n.º 22
0
		static void OnProjectReferenceRemoved (object sender, ProjectReferenceEventArgs args)
		{
			ProjectDom db = GetProjectDom (args.Project);
			if (db != null) {
				db.OnProjectReferenceRemoved (args.ProjectReference);
			}
		}
		void ProjectReferenceRemovedFromProject (object sender, ProjectReferenceEventArgs e)
		{
		}
Exemplo n.º 24
0
 internal void NotifyReferenceAddedToProject(object sender, ProjectReferenceEventArgs e)
 {
     OnReferenceAddedToProject(e);
 }
Exemplo n.º 25
0
		protected virtual void OnReferenceRemovedFromProject (ProjectReferenceEventArgs e)
		{
			if (ReferenceRemovedFromProject != null) {
				ReferenceRemovedFromProject (this, e);
			}
		}
		void OnAddReference (object sender, ProjectReferenceEventArgs e)
		{
			DotNetProject p = e.Project as DotNetProject;
			if (p != null) {
				ITreeBuilder tb = Context.GetTreeBuilder (p.References);
				if (tb != null)
					tb.AddChild (e.ProjectReference);
			}
		}
Exemplo n.º 27
0
        protected override void OnReferenceRemovedFromProject(ProjectReferenceEventArgs e)
        {
            base.OnReferenceRemovedFromProject (e);

            if (addingReferences)
                return;

            if (e.ProjectReference.ReferenceType == ReferenceType.Project) {
                var jsonFile = ProjectJsonFile.Read (this);
                if (jsonFile.Exists) {
                    jsonFile.RemoveProjectReference (e.ProjectReference);
                    jsonFile.Save ();
                    FileService.NotifyFileChanged (jsonFile.Path);
                } else {
                    LoggingService.LogDebug ("Unable to find project.json '{0}'", jsonFile.Path);
                }
            }
        }
Exemplo n.º 28
0
		protected override void OnReferenceRemovedFromProject (ProjectReferenceEventArgs e)
		{
			IDELogger.Log ("MonobjcProject::OnReferenceRemovedFromProject '{0}'", e);

			this.ResolverHandler.RecomputeReferences();
			this.XcodeHandler.ClearXcodeProject();

			base.OnReferenceRemovedFromProject (e);
		}
Exemplo n.º 29
0
		static void OnReferenceRemoved (object o, ProjectReferenceEventArgs args)
		{
			if (updating || !IsGtkReference (args.ProjectReference))
				return;

			DotNetProject dnp = args.Project as DotNetProject;

			if (MessageService.Confirm (GettextCatalog.GetString ("The Gtk# User Interface designer will be disabled by removing the gtk-sharp reference."), new AlertButton (GettextCatalog.GetString ("Disable Designer")))) {
				dnp.ExtendedProperties ["GtkReferenceExists"] = false;
				GtkDesignInfo.DisableProject (dnp);
			} else
				dnp.References.Add (ProjectReference.CreateAssemblyReference (args.ProjectReference.StoredReference));
		}
Exemplo n.º 30
0
		void OnReferenceChangedInProject (object sender, ProjectReferenceEventArgs e)
		{
			if (!IsSolutionGroupPresent (e.Project.ParentSolution, rootTests))
				RebuildTests ();
		}
Exemplo n.º 31
0
		static void OnReferenceAdded (object o, ProjectReferenceEventArgs args)
		{
			if (updating || !IsGtkReference (args.ProjectReference))
				return;

			string sr = args.ProjectReference.StoredReference;
			string version = sr.Substring (sr.IndexOf (",") + 1).Trim ();
			ReferenceManager rm = new ReferenceManager (args.Project as DotNetProject);
			rm.Update (version);
		}
		void ProjectReferenceAddedToProject (object sender, ProjectReferenceEventArgs e)
		{
			if (updating)
				return;
			if (e.ProjectReference.ReferenceType == ReferenceType.Project) {
				DotNetProject rp = project.ParentSolution.FindProjectByName (e.ProjectReference.Reference) as DotNetProject;
				if (rp != null) {
					AddinData adata = AddinData.GetAddinData (rp);
					if (adata != null) {
						CachedAddinManifest.MainModule.Dependencies.Add (new AddinDependency (adata.CachedAddinManifest.AddinId));
						CachedAddinManifest.Save ();
						NotifyChanged (false);
					}
				}
			}
		}
Exemplo n.º 33
0
		static void OnReferenceRemoved (object o, ProjectReferenceEventArgs args)
		{
			if (updating || !IsGtkReference (args.ProjectReference))
				return;

			DotNetProject dnp = args.Project as DotNetProject;

			if (MessageService.Confirm (GettextCatalog.GetString ("The Gtk# User Interface designer will be disabled by removing the gtk-sharp reference."), new AlertButton (GettextCatalog.GetString ("Disable Designer"))))
				GtkDesignInfo.DisableProject (dnp);
			else
				dnp.References.Add (new ProjectReference (ReferenceType.Gac, args.ProjectReference.StoredReference));
		}
Exemplo n.º 34
0
		protected virtual void OnReferenceAddedToProject (ProjectReferenceEventArgs e)
		{
			if (ReferenceAddedToProject != null) {
				ReferenceAddedToProject (this, e);
			}
		}
		void OnReferenceChanged (object s, ProjectReferenceEventArgs args)
		{
			if (NUnitProjectTestSuite.IsNUnitReference (args.ProjectReference))
				UnitTestService.ReloadTests ();
		}