private void DocumentEvents_Closed(string document) { // Remove document from OrphanedFilesProject // So it can be opened in normal project afterwards // when possible XSolution.WriteOutputMessage("DocumentEvents_Closed " + document ?? "(none)"); var xfile = XSolution.FindFile(document); if (xfile != null && xfile.Project.Name == OrphanedFilesProject.OrphanName) { XSolution.OrphanedFilesProject.RemoveFile(document); } }
private void SolutionEvents_OnAfterOpenProject(Community.VisualStudio.Toolkit.Project project) { XSolution.WriteOutputMessage("SolutionEvents_OnAfterOpenProject " + project.FullPath ?? "(none)"); //if (project.IsXSharp()) //{ //var xProject = XSolution.FindProject(project.FullPath); //if (xProject != null) //{ // addProjectFiles(xProject, project); // if (XSolution.IsOpen) // { // ModelWalker.AddProject(xProject); // ModelWalker.Walk(); // } //} //} }
private void SolutionEvents_OnBeforeOpenProject(string obj) { XSolution.WriteOutputMessage("SolutionEvents_OnBeforeOpenProject " + obj ?? "(none)"); checkProjectFile(obj); }
private void SolutionEvents_OnBeforeOpenSolution(string obj) { // we do not see this for the first solution that is opened // because we are usually not loaded then XSolution.WriteOutputMessage("SolutionEvents_OnBeforeOpenSolution " + obj ?? "(none)"); }
private void DocumentEvents_Opened(string document) { XSolution.WriteOutputMessage("DocumentEvents_Opened " + document ?? "(none)"); }