diff options
author | Alan McGovern <alan.mcgovern@gmail.com> | 2011-10-10 19:29:04 +0400 |
---|---|---|
committer | Alan McGovern <alan.mcgovern@gmail.com> | 2011-10-12 18:40:37 +0400 |
commit | 542b468b135dd869df8dc32316b7438f54b9be29 (patch) | |
tree | 01d9c27bd902a6e14aa50e3ef9a7ec2c700766fd /main/tests | |
parent | 5f851d3eda566ac299b8c1f450ac5f6ffb4b747c (diff) |
[VersionControl] Turn DiffView/LogView/BlameView etc into extension points
There are places where we need customised diff/log/blame handling for specific
file types. For example plist files can always be viewed in text format but the
on-disk file may be binary. To implement diff support for this requires special
handling. This is supported by turning the various version control views into
extension points so that custom handlers can be created.
The default views for Diff, Blame, Log etc have also been refactored to not
depend directly on SourceEditorView. These views now all check to see if the
PrimaryView they're wrapping supports ITextFile, ITextBuffer etc before
using features defined by those interfaces. DiffView works with an ITextFile
at the most basic level by displaying a readonly view. If the view is an
IEditableTextFile/ITextBuffer or SourceEditorView we enable further features
automatically.
Similary for the other views.
Diffstat (limited to 'main/tests')
-rw-r--r-- | main/tests/UnitTests/MonoDevelop.CSharpBinding/TestWorkbenchWindow.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/tests/UnitTests/MonoDevelop.CSharpBinding/TestWorkbenchWindow.cs b/main/tests/UnitTests/MonoDevelop.CSharpBinding/TestWorkbenchWindow.cs index 2fc17da51d..0e7ac998c8 100644 --- a/main/tests/UnitTests/MonoDevelop.CSharpBinding/TestWorkbenchWindow.cs +++ b/main/tests/UnitTests/MonoDevelop.CSharpBinding/TestWorkbenchWindow.cs @@ -95,7 +95,7 @@ namespace MonoDevelop.CSharpBinding.Tests {
}
- public int FindView (Type viewType)
+ public int FindView<T> ()
{
return -1;
}
|