don't barf when diffing binary files
[tfs.git] / class / MonoDevelop.TeamFoundation / TeamFoundationCommands.cs
blob970c6aafb9bea23e8723b65f4e78d79e0d916070
1 using System;
2 using System.Collections.Generic;
3 using System.IO;
4 using System.Net;
5 using System.Text;
6 using Gtk;
8 using MonoDevelop.Core;
9 using MonoDevelop.Ide.Gui;
10 using MonoDevelop.Components.Commands;
11 using MonoDevelop.VersionControl.Views;
13 using Microsoft.TeamFoundation.Client;
14 using Microsoft.TeamFoundation.VersionControl.Common;
15 using Microsoft.TeamFoundation.VersionControl.Client;
16 using Gtk.TeamFoundation;
18 namespace MonoDevelop.TeamFoundation
20 public enum TeamFoundationCommands
22 ShowTeamFoundation
25 public class ShowTeamFoundationHandler : CommandHandler
27 protected override void Run()
29 foreach (Document d in IdeApp.Workbench.Documents) {
30 if (d.GetContent<TeamFoundationView>() != null) {
31 d.Select();
32 return;
36 TeamFoundationView tfv = new TeamFoundationView();
37 IdeApp.Workbench.OpenDocument(tfv, true);