コード例 #1
0
        /// <summary>
        ///     The launch extension properties.
        /// </summary>
        private void LaunchExtensionProperties()
        {
            this.VSonarQubeOptionsViewData.RefreshPropertiesInView(this.AssociatedProject);
            var window = new VSonarQubeOptionsView(this.VSonarQubeOptionsViewData);

            window.ShowDialog();
        }
コード例 #2
0
        /// <summary>
        ///     The try to connect.
        /// </summary>
        private void TryToConnect()
        {
            try
            {
                if (AuthtenticationHelper.AuthToken == null)
                {
                    var window = new VSonarQubeOptionsView(this.VSonarQubeOptionsViewData);
                    this.VSonarQubeOptionsViewData.SelectedOption = this.VSonarQubeOptionsViewData.GeneralConfigurationViewModel;
                    window.ShowDialog();
                }

                if (AuthtenticationHelper.AuthToken == null)
                {
                    this.IsConnected = false;
                    return;
                }

                this.IsConnected = true;
                this.IsConnectedButNotAssociated = true;
                this.IsAssociated = false;

                this.ConnectionTooltip = "Authenticated, but no associated";

                List <Resource> projects =
                    this.SonarRestConnector.GetProjectsList(AuthtenticationHelper.AuthToken);
                if (projects != null && projects.Count > 0)
                {
                    this.OnRefreshProjectList(projects);
                }

                this.SonarVersion =
                    this.SonarRestConnector.GetServerInfo(AuthtenticationHelper.AuthToken);
            }
            catch (Exception ex)
            {
                Debug.WriteLine(ex.Message);
                this.NotificationManager.ReportException(ex);
                this.ConnectionTooltip           = "No Connection";
                this.IsConnected                 = false;
                this.IsConnectedButNotAssociated = false;
                this.IsAssociated                = false;
            }
        }
コード例 #3
0
        /// <summary>
        ///     The launch extension properties.
        /// </summary>
        public void LaunchExtensionProperties()
        {
            var window = new VSonarQubeOptionsView(this.VSonarQubeOptionsViewData);

            window.ShowDialog();
        }
コード例 #4
0
 /// <summary>
 ///     The launch extension properties.
 /// </summary>
 public void LaunchExtensionProperties()
 {
     var window = new VSonarQubeOptionsView(this.VSonarQubeOptionsViewData);
     window.ShowDialog();
 }