You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.2 KiB
40 lines
1.2 KiB
// <file> |
|
// <copyright see="prj:///Doc/copyright.txt"/> |
|
// <license see="prj:///Doc/license.txt"/> |
|
// <owner name="Christian Hornung" email="c-hornung@gmx.de"/> |
|
// <version>$Revision$</version> |
|
// </file> |
|
|
|
using System; |
|
using ICSharpCode.Core; |
|
using ICSharpCode.SharpDevelop; |
|
using ICSharpCode.SharpDevelop.DefaultEditor.Gui.Editor; |
|
using ICSharpCode.NRefactory.PrettyPrinter; |
|
|
|
namespace Hornung.ResourceToolkit.CodeCompletion |
|
{ |
|
/// <summary> |
|
/// Provides code completion for inserting resource keys in C#. |
|
/// </summary> |
|
public class CSharpResourceCodeCompletionBinding : AbstractNRefactoryResourceCodeCompletionBinding |
|
{ |
|
|
|
/// <summary> |
|
/// Determines if the specified character should trigger resource resolve attempt and possibly code completion at the current position. |
|
/// </summary> |
|
protected override bool CompletionPossible(SharpDevelopTextAreaControl editor, char ch) |
|
{ |
|
return ch == '(' || ch == '['; |
|
} |
|
|
|
/// <summary> |
|
/// Gets a CSharpOutputVisitor used to generate the inserted code. |
|
/// </summary> |
|
protected override IOutputAstVisitor OutputVisitor { |
|
get { |
|
return new CSharpOutputVisitor(); |
|
} |
|
} |
|
|
|
} |
|
}
|
|
|