|
|
|
@ -6,7 +6,10 @@
@@ -6,7 +6,10 @@
|
|
|
|
|
// </file>
|
|
|
|
|
|
|
|
|
|
using System; |
|
|
|
|
|
|
|
|
|
using ICSharpCode.SharpDevelop.Dom; |
|
|
|
|
using ICSharpCode.SharpDevelop.DefaultEditor.Gui.Editor; |
|
|
|
|
using ICSharpCode.SharpDevelop.Dom.NRefactoryResolver; |
|
|
|
|
|
|
|
|
|
namespace VBNetBinding |
|
|
|
|
{ |
|
|
|
@ -14,6 +17,29 @@ namespace VBNetBinding
@@ -14,6 +17,29 @@ namespace VBNetBinding
|
|
|
|
|
{ |
|
|
|
|
public VBNetCompletionBinding() : base(".vb") |
|
|
|
|
{ |
|
|
|
|
this.EnableXmlCommentCompletion = true; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public override bool HandleKeyword(SharpDevelopTextAreaControl editor, string word) |
|
|
|
|
{ |
|
|
|
|
// TODO: Assistance writing Methods/Fields/Properties/Events:
|
|
|
|
|
// use public/static/etc. as keywords to display a list with other modifiers
|
|
|
|
|
// and possible return types.
|
|
|
|
|
switch (word.ToLower()) { |
|
|
|
|
case "imports": |
|
|
|
|
// TODO: check if we are inside class/namespace
|
|
|
|
|
editor.ShowCompletionWindow(new CtrlSpaceCompletionDataProvider(ExpressionContext.Namespace), ' '); |
|
|
|
|
return true; |
|
|
|
|
case "as": |
|
|
|
|
System.Windows.Forms.MessageBox.Show("as"); |
|
|
|
|
editor.ShowCompletionWindow(new CtrlSpaceCompletionDataProvider(ExpressionContext.Type), ' '); |
|
|
|
|
return true; |
|
|
|
|
case "new": |
|
|
|
|
editor.ShowCompletionWindow(new CtrlSpaceCompletionDataProvider(ExpressionContext.ObjectCreation), ' '); |
|
|
|
|
return true; |
|
|
|
|
default: |
|
|
|
|
return base.HandleKeyword(editor, word); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|