Exemplo n.º 1
0
            public void OnItemRemoved(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.DeleteFile(m_plugin.OutputPane, name);
                }
            }
Exemplo n.º 2
0
            public override void OnExecute(SelectedItem item, string fileName, OutputWindowPane pane)
            {
                OpenFileDialog dlg = new OpenFileDialog();

                dlg.Title            = "Source: " + fileName;
                dlg.Multiselect      = false;
                dlg.CheckFileExists  = false;
                dlg.CheckPathExists  = false;
                dlg.InitialDirectory = Path.GetDirectoryName(fileName);
                dlg.FileName         = Path.GetFileName(fileName);

                if (DialogResult.OK == dlg.ShowDialog())
                {
                    string newName = dlg.FileName;
                    P4Operations.IntegrateFile(pane, newName, fileName);
                    P4Operations.EditFile(pane, item.ProjectItem.ContainingProject.FullName);
                    item.ProjectItem.Collection.AddFromFile(newName);
                    item.ProjectItem.Delete();
                    P4Operations.DeleteFile(pane, fileName);
                }
            }
Exemplo n.º 3
0
 private void OnProjectRemoved(Project project)
 {
     P4Operations.EditFile(m_plugin.OutputPane, m_plugin.App.Solution.FullName);
     P4Operations.DeleteFile(m_plugin.OutputPane, project.FullName);
     // TODO: [jt] Do we want to automatically delete the items from perforce here?
 }