1
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
2
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
6
using ICSharpCode.Core;
7
using ICSharpCode.SharpDevelop;
9
namespace ICSharpCode.Svn
11
public class HistoryViewDisplayBinding : ISecondaryDisplayBinding
14
/// When you return true for this property, the CreateSecondaryViewContent method
15
/// is called again after the LoadSolutionProjects thread has finished.
17
public bool ReattachWhenParserServiceIsReady {
23
public ICSharpCode.SharpDevelop.Gui.IViewContent[] CreateSecondaryViewContent(ICSharpCode.SharpDevelop.Gui.IViewContent viewContent)
25
return new ICSharpCode.SharpDevelop.Gui.IViewContent[] { new HistoryView(viewContent) };
28
public bool CanAttachTo(ICSharpCode.SharpDevelop.Gui.IViewContent content)
30
if (!AddInOptions.UseHistoryDisplayBinding) {
33
OpenedFile file = content.PrimaryFile;
34
if (file == null || file.IsUntitled || !File.Exists(file.FileName)) {
38
return SvnClientWrapper.IsInSourceControl(file.FileName);