C# Class TypescriptSyntaxPaste.PasteCommandHandler

Inheritance: IOleCommandTarget
显示文件 Open project: nhabuiduc/TypescriptSyntaxPaste

Public Methods

Method Description
Exec ( System.Guid &pguidCmdGroup, uint nCmdID, uint nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut ) : int
PasteCommandHandler ( IVsTextView adapter, ITextView textView, DTE2 dte ) : System
QueryStatus ( System.Guid &pguidCmdGroup, uint cCmds, OLECMD prgCmds, IntPtr pCmdText ) : int

Private Methods

Method Description
FormatSelection ( ) : void
HandlePasteCommand ( System.Guid pguidCmdGroup, uint nCmdID ) : bool
InsertIntoDocument ( EnvDTE doc, string typescriptCode ) : void
ShouldHandleThisCommand ( System.Guid pguidCmdGroup, uint nCmdID ) : bool

Method Details

Exec() public method

public Exec ( System.Guid &pguidCmdGroup, uint nCmdID, uint nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut ) : int
pguidCmdGroup System.Guid
nCmdID uint
nCmdexecopt uint
pvaIn System.IntPtr
pvaOut System.IntPtr
return int

PasteCommandHandler() public method

public PasteCommandHandler ( IVsTextView adapter, ITextView textView, DTE2 dte ) : System
adapter IVsTextView
textView ITextView
dte DTE2
return System

QueryStatus() public method

public QueryStatus ( System.Guid &pguidCmdGroup, uint cCmds, OLECMD prgCmds, IntPtr pCmdText ) : int
pguidCmdGroup System.Guid
cCmds uint
prgCmds OLECMD
pCmdText System.IntPtr
return int