|
|
@ -2,6 +2,7 @@ |
|
|
|
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
|
|
|
|
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
|
|
|
|
|
|
|
|
|
|
|
|
using System; |
|
|
|
using System; |
|
|
|
|
|
|
|
using System.ComponentModel; |
|
|
|
using System.Linq; |
|
|
|
using System.Linq; |
|
|
|
using System.Windows; |
|
|
|
using System.Windows; |
|
|
|
using System.Windows.Controls; |
|
|
|
using System.Windows.Controls; |
|
|
@ -137,7 +138,7 @@ namespace ICSharpCode.AvalonEdit.AddIn |
|
|
|
new object Description { get; } |
|
|
|
new object Description { get; } |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
sealed class CodeCompletionDataAdapter : ICompletionData |
|
|
|
sealed class CodeCompletionDataAdapter : ICompletionData, INotifyPropertyChanged |
|
|
|
{ |
|
|
|
{ |
|
|
|
readonly SharpDevelopCompletionWindow window; |
|
|
|
readonly SharpDevelopCompletionWindow window; |
|
|
|
readonly ICompletionItem item; |
|
|
|
readonly ICompletionItem item; |
|
|
@ -202,5 +203,11 @@ namespace ICSharpCode.AvalonEdit.AddIn |
|
|
|
if (context.CompletionCharHandled && txea != null) |
|
|
|
if (context.CompletionCharHandled && txea != null) |
|
|
|
txea.Handled = true; |
|
|
|
txea.Handled = true; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// This is required to work around http://support.microsoft.com/kb/938416/en-us
|
|
|
|
|
|
|
|
event System.ComponentModel.PropertyChangedEventHandler INotifyPropertyChanged.PropertyChanged { |
|
|
|
|
|
|
|
add { } |
|
|
|
|
|
|
|
remove { } |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|