C# Class GitMenu.Commands.GitCommand

Inheritance: BaseCommand
显示文件 Open project: kthompson/gitmenu

Public Methods

Method Description
GetMenuMask ( ) : CommandFlags
GetMenuMask ( string path ) : CommandFlags
HasGitRepository ( string path ) : bool

Protected Methods

Method Description
CanExecute ( ) : bool
GetSelectedPath ( ) : string
GitCommand ( GitMenuPackage provider, CommandID id, CommandFlags selection, string text ) : System
GitCommand ( GitMenuPackage provider, int id, CommandFlags selection, string text ) : System

Method Details

CanExecute() protected method

protected CanExecute ( ) : bool
return bool

GetMenuMask() public static method

public static GetMenuMask ( ) : CommandFlags
return CommandFlags

GetMenuMask() public static method

public static GetMenuMask ( string path ) : CommandFlags
path string
return CommandFlags

GetSelectedPath() protected static method

protected static GetSelectedPath ( ) : string
return string

GitCommand() protected method

protected GitCommand ( GitMenuPackage provider, CommandID id, CommandFlags selection, string text ) : System
provider GitMenuPackage
id System.ComponentModel.Design.CommandID
selection CommandFlags
text string
return System

GitCommand() protected method

protected GitCommand ( GitMenuPackage provider, int id, CommandFlags selection, string text ) : System
provider GitMenuPackage
id int
selection CommandFlags
text string
return System

HasGitRepository() public static method

public static HasGitRepository ( string path ) : bool
path string
return bool