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); }
void ProjectNameChanged(object sender, SolutionItemRenamedEventArgs e) { if (!outputDir.IsNullOrEmpty && Directory.Exists(outputDir)) { Directory.Delete(outputDir, true); } UpdateOutputDir(); }
void OnProjectRenamed(object sender, SolutionItemRenamedEventArgs e) { UnitTestGroup parent = Parent as UnitTestGroup; if (parent != null) { parent.UpdateTests(); } }
void OnCombineRenamed(object sender, SolutionItemRenamedEventArgs e) { ITreeBuilder tb = Context.GetTreeBuilder(e.SolutionItem); if (tb != null) { tb.Update(); } }
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(); }
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); }
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); }
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); }
protected override void OnNameChanged(SolutionItemRenamedEventArgs e) { command.EditArgument(e.OldName, e.NewName); }