4.5: Complete Statement Follow Jakob Christensen Created January 15, 2009 19:29 Is there any way to hook into the Complete Statement action?I would like to extend it.Thanks,--Jakob
You can override any action by creating your own IActionHandler and
attaching it to the action as follows:
var actionId = "CompleteStatement";
var action = ActionManager.Instance.GetAction(actionId);
If You want to implement statement completion for any language other than
C#, you may create a ICompleteStatementActionProvider and mark your class
with LanguageSpecificImplementation attribute like the following. But this
will not allow You override C# behaviour and will work if and only if there
is no other provider for the same language.
public class CSharpCompleteStatementActionProvider :
Sergey V. Coox
"Develop with pleasure!"
Thanks a lot!
>> Is there any way to hook into the Complete Statement action?