C# 클래스 GoogleCloudExtension.Utils.ShellUtils

This class contains utilities to manage the UI state of the Visual Studio shell.
파일 보기 프로젝트 열기: GoogleCloudPlatform/google-cloud-visualstudio

공개 메소드들

메소드 설명
InvalidateCommandsState ( ) : void

Updates the UI state of all commands in the VS shell. This is useful when the state that determines if a command is enabled/disabled (or visible/invisiable) changes and the commands in the menus need to be updated. In essence this method will cause the OnBeforeQueryStatus method in all commands to be called again.

IsBuilding ( ) : bool

Returns whether the shell is in the buliding state. This will happen if the user is building the app.

IsBusy ( ) : bool

Returns true if the shell is in a busy state.

IsDebugging ( ) : bool

Returns whether the shell is in the debugger state. This will happen if the user is debugging an app.

SetShellUIBusy ( ) : IDisposable

Changes the UI state to a busy state. The pattern to use this method is to assign the result value to a variable in a using statement.

비공개 메소드들

메소드 설명
GetMonitorSelectionService ( ) : IVsMonitorSelection
GetUIContext ( IVsMonitorSelection monitorSelection, System.Guid contextGuid ) : bool
SetShellNormal ( ) : void
SetUIContext ( IVsMonitorSelection monitorSelection, System.Guid contextGuid, bool value ) : void

메소드 상세

InvalidateCommandsState() 공개 정적인 메소드

Updates the UI state of all commands in the VS shell. This is useful when the state that determines if a command is enabled/disabled (or visible/invisiable) changes and the commands in the menus need to be updated. In essence this method will cause the OnBeforeQueryStatus method in all commands to be called again.
public static InvalidateCommandsState ( ) : void
리턴 void

IsBuilding() 공개 정적인 메소드

Returns whether the shell is in the buliding state. This will happen if the user is building the app.
public static IsBuilding ( ) : bool
리턴 bool

IsBusy() 공개 정적인 메소드

Returns true if the shell is in a busy state.
public static IsBusy ( ) : bool
리턴 bool

IsDebugging() 공개 정적인 메소드

Returns whether the shell is in the debugger state. This will happen if the user is debugging an app.
public static IsDebugging ( ) : bool
리턴 bool

SetShellUIBusy() 공개 정적인 메소드

Changes the UI state to a busy state. The pattern to use this method is to assign the result value to a variable in a using statement.
public static SetShellUIBusy ( ) : IDisposable
리턴 IDisposable