コード例 #1
0
 public static void Show(string name, string lefttext, string righttext)
 {
     DiffView d = new DiffView(name, split(lefttext), split(righttext));
     MonoDevelop.Gui.WorkbenchSingleton.Workbench.ShowView(d, true);
 }
コード例 #2
0
 public static bool Show(string filepath, bool test)
 {
     foreach (VersionControlSystem vc in VersionControlService.Providers) {
         if (vc.IsDiffAvailable(filepath)) {
             if (test) return true;
             DiffView d = new DiffView(
                 Path.GetFileName(filepath),
                 vc.GetPathToBaseText(filepath),
                 filepath);
             MonoDevelop.Gui.WorkbenchSingleton.Workbench.ShowView(d, true);
             return true;
         }
     }
     return false;
 }