private void OnProjectAdded(Project project) { P4Operations.EditFile(m_plugin.OutputPane, m_plugin.App.Solution.FullName); P4Operations.AddFile(m_plugin.OutputPane, project.FullName); // TODO: [jt] We should if the operation is not a add new project but rather a add existing project // step through all the project items and add them to perforce. Or maybe we want the user // to do this herself? }
public void OnItemAdded(ProjectItem item) { P4Operations.EditFile(m_plugin.OutputPane, item.ContainingProject.FullName); for (int i = 0; i < item.FileCount; i++) { string name = item.get_FileNames((short)i); P4Operations.AddFile(m_plugin.OutputPane, name); } }
public void OnItemAdded(ProjectItem item) { P4Operations.EditFile(m_plugin.OutputPane, item.ContainingProject.FullName); if (item.ProjectItems != null) { for (int i = 0; i < item.FileCount; i++) { string name = item.get_FileNames((short)i); P4Operations.AddFile(m_plugin.OutputPane, name); } } else { if (System.IO.File.Exists(item.Name)) { P4Operations.AddFile(m_plugin.OutputPane, item.Name); } } }