Browse Source
Implementation: - added bool ICompletionItemList.ContainsAllAvailableItems - the list tells if it could contain even more items and anyone displaying it (SharpDevelopCompletionWindow) can handle this - bool ContainsAllAvailableItems is always true except for NRefactoryCompletionItemList returned by NRefactoryCtrlSpaceCompletionItemProvider, where it can be set to false git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5906 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61pull/1/head
9 changed files with 85 additions and 35 deletions
@ -0,0 +1,29 @@
@@ -0,0 +1,29 @@
|
||||
// <file>
|
||||
// <copyright see="prj:///doc/copyright.txt"/>
|
||||
// <license see="prj:///doc/license.txt"/>
|
||||
// <owner name="Martin Konicek" email="martin.konicek@gmail.com"/>
|
||||
// <version>$Revision: $</version>
|
||||
// </file>
|
||||
using System; |
||||
using ICSharpCode.SharpDevelop.Editor.CodeCompletion; |
||||
|
||||
namespace ICSharpCode.SharpDevelop.Editor.CodeCompletion |
||||
{ |
||||
/// <summary>
|
||||
/// <see cref="ICompletionItemList" /> created by <see cref="NRefactoryCtrlSpaceCompletionItemProvider" />.
|
||||
/// </summary>
|
||||
public class NRefactoryCompletionItemList : DefaultCompletionItemList |
||||
{ |
||||
/// <summary>
|
||||
/// <see cref="NRefactoryCtrlSpaceCompletionItemProvider" /> sets this to true if this list contains items
|
||||
/// from all namespaces, regardless of current imports.
|
||||
/// </summary>
|
||||
public bool ContainsItemsFromAllNamespaces { get; set; } |
||||
|
||||
/// <inheritdoc />
|
||||
public override bool ContainsAllAvailableItems |
||||
{ |
||||
get { return ContainsItemsFromAllNamespaces; } |
||||
} |
||||
} |
||||
} |
Loading…
Reference in new issue