protected sealed override void UpdateGUI()

in Editor/Window/ManagedEC2/EC2DeployStep.cs [113:171]


        protected sealed override void UpdateGUI()
        {
            if (!_hasStarted) return;
            bool canDeploy = _deploymentSettings.CurrentStackInfo.StackStatus == null &&
                                     _deploymentSettings.CanDeploy;

            _deployButton.SetEnabled(canDeploy);
            if (canDeploy)
            {
                _deployButton.AddToClassList(_primaryButtonClassName);
            }
            else
            {
                _deployButton.RemoveFromClassList(_primaryButtonClassName);
            }

            _deleteButton.SetEnabled(_deploymentSettings.CanDelete);


            _templateContent.StatusBox.Close();
            var stackStatus = _deploymentSettings.CurrentStackInfo.StackStatus;
            var textProvider = new TextProvider();
            if (stackStatus == null)
            {
                _statusIndicator.Set(State.Inactive, textProvider.Get(Strings.ManagedEC2DeployStatusNotDeployed));
            }
            else if (stackStatus.IsStackStatusFailed())
            {
                _statusIndicator.Set(State.Failed, textProvider.Get(Strings.ManagedEC2DeployStatusFailed));
                EncounteredException(StatusBox.StatusBoxType.Error, textProvider.GetError(ErrorCode.StackStatusInvalid));
            }
            else if (stackStatus == StackStatus.DeleteInProgress)
            {
                _statusIndicator.Set(State.InProgress, textProvider.Get(Strings.ManagedEC2DeployStatusDeleting));
            }
            else if (stackStatus.IsStackStatusRollback())
            {
                _statusIndicator.Set(State.Failed, textProvider.Get(stackStatus.IsStackStatusInProgress()
                    ? Strings.ManagedEC2DeployStatusRollingBack
                    : Strings.ManagedEC2DeployStatusRolledBack));
                EncounteredException(StatusBox.StatusBoxType.Error,
                    textProvider.GetError(ErrorCode.StackStatusInvalid));
            }
            else if (stackStatus.IsStackStatusInProgress())
            {
                _statusIndicator.Set(State.InProgress, textProvider.Get(Strings.ManagedEC2DeployStatusDeploying));
            }
            else if (stackStatus.IsStackStatusOperationDone())
            {
                _statusIndicator.Set(State.Success, textProvider.Get(Strings.ManagedEC2DeployStatusDeployed));
                CompleteStep();
            }
            else
            {
                _statusIndicator.Set(State.Inactive, textProvider.Get(Strings.ManagedEC2DeployStatusNotDeployed));
            }

            _statusLink.visible = _deploymentSettings.HasCurrentStack;
        }