C# Class EditorConfig.VisualStudio.Integration.Commands.BaseCommand

The base implementation of a command.
Inheritance: Microsoft.VisualStudio.Shell.OleMenuCommand
ファイルを表示 Open project: editorconfig/editorconfig-visualstudio

Protected Methods

Method Description
BaseCommand ( EditorConfigPackage package, CommandID id ) : System

Initializes a new instance of the BaseCommand class.

OnBeforeQueryStatus ( ) : void

Called to update the current status of the command.

OnExecute ( ) : void

Called to execute the command.

Private Methods

Method Description
BaseCommand_BeforeQueryStatus ( object sender, EventArgs e ) : void

Handles the BeforeQueryStatus event of the BaseCommand control.

BaseCommand_Execute ( object sender, EventArgs e ) : void

Handles the Execute event of the BaseCommand control.

Method Details

BaseCommand() protected method

Initializes a new instance of the BaseCommand class.
protected BaseCommand ( EditorConfigPackage package, CommandID id ) : System
package EditorConfigPackage The hosting package.
id System.ComponentModel.Design.CommandID The id for the command.
return System

OnBeforeQueryStatus() protected method

Called to update the current status of the command.
protected OnBeforeQueryStatus ( ) : void
return void

OnExecute() protected abstract method

Called to execute the command.
protected abstract OnExecute ( ) : void
return void