コード例 #1
0
 void ProjectNameChanged(object sender, SolutionItemRenamedEventArgs e)
 {
     XC4Debug.Log("Project name changed, resetting sync");
     xcode.CloseProject();
     xcode.DeleteProjectDirectory();
     xcode = new XcodeMonitor(dnp.BaseDirectory.Combine("obj", "Xcode"), dnp.Name);
 }
コード例 #2
0
 void ProjectNameChanged(object sender, SolutionItemRenamedEventArgs e)
 {
     if (!outputDir.IsNullOrEmpty && Directory.Exists(outputDir))
     {
         Directory.Delete(outputDir, true);
     }
     UpdateOutputDir();
 }
コード例 #3
0
        void OnProjectRenamed(object sender, SolutionItemRenamedEventArgs e)
        {
            UnitTestGroup parent = Parent as UnitTestGroup;

            if (parent != null)
            {
                parent.UpdateTests();
            }
        }
コード例 #4
0
        void OnCombineRenamed(object sender, SolutionItemRenamedEventArgs e)
        {
            ITreeBuilder tb = Context.GetTreeBuilder(e.SolutionItem);

            if (tb != null)
            {
                tb.Update();
            }
        }
コード例 #5
0
 void ProjectNameChanged(object sender, SolutionItemRenamedEventArgs e)
 {
     //FIXME: get Xcode to close and re-open the project
     if (!outputDir.IsNullOrEmpty && Directory.Exists(outputDir))
     {
         Directory.Delete(outputDir, true);
     }
     UpdateOutputDir();
 }
コード例 #6
0
        void ProjectNameChanged(object sender, SolutionItemRenamedEventArgs e)
        {
            XC4Debug.Log("Project '{0}' was renamed to '{1}', resetting Xcode sync.", e.OldName, e.NewName);

            XC4Debug.Indent();
            try {
                xcode.CloseProject();
                xcode.DeleteProjectDirectory();
            } finally {
                XC4Debug.Unindent();
            }

            xcode = new XcodeMonitor(dnp.BaseDirectory.Combine("obj", "Xcode"), dnp.Name);
        }
コード例 #7
0
		protected override void OnNameChanged (SolutionItemRenamedEventArgs e)
		{
			if (!projItemsPath.IsNullOrEmpty && Path.GetFileNameWithoutExtension (e.OldName) == projItemsPath.FileNameWithoutExtension) {
				// We are going to rename the projitems file, but before that, let's get all referencing projects, since they reference
				// using the old path
				string oldPath = ProjItemsPath;
				var refProjects = GetReferencingProjects ().ToArray ();

				// Set the new projitems file name
				projItemsPath = projItemsPath.ParentDirectory.Combine (e.NewName) + projItemsPath.Extension;

				// Update all referencing projects
				foreach (var p in refProjects) {
					var sr = p.References.FirstOrDefault (r => r.GetItemsProjectPath () == oldPath);
					if (sr != null)
						sr.SetItemsProjectPath (ProjItemsPath);
				}
			}
			base.OnNameChanged (e);
		}
コード例 #8
0
        protected override void OnNameChanged(SolutionItemRenamedEventArgs e)
        {
            if (!projItemsPath.IsNullOrEmpty && Path.GetFileNameWithoutExtension(e.OldName) == projItemsPath.FileNameWithoutExtension)
            {
                // We are going to rename the projitems file, but before that, let's get all referencing projects, since they reference
                // using the old path
                string oldPath     = ProjItemsPath;
                var    refProjects = GetReferencingProjects().ToArray();

                // Set the new projitems file name
                projItemsPath = projItemsPath.ParentDirectory.Combine(e.NewName) + projItemsPath.Extension;

                // Update all referencing projects
                foreach (var p in refProjects)
                {
                    var sr = p.References.FirstOrDefault(r => r.GetItemsProjectPath() == oldPath);
                    if (sr != null)
                    {
                        sr.SetItemsProjectPath(ProjItemsPath);
                    }
                }
            }
            base.OnNameChanged(e);
        }
コード例 #9
0
ファイル: CMakeTarget.cs プロジェクト: gitexperience/cbinding
 protected override void OnNameChanged(SolutionItemRenamedEventArgs e)
 {
     command.EditArgument(e.OldName, e.NewName);
 }