use of org.sonarlint.intellij.config.global.wizard.SQServerWizard in project sonarlint-intellij by SonarSource.
the class SonarQubeServerMgmtPanel method editServer.
private void editServer() {
SonarQubeServer selectedServer = getSelectedServer();
int selectedIndex = serverList.getSelectedIndex();
if (selectedServer != null) {
SQServerWizard serverEditor = new SQServerWizard(selectedServer);
if (serverEditor.showAndGet()) {
SonarQubeServer newServer = serverEditor.getServer();
((CollectionListModel) serverList.getModel()).setElementAt(newServer, selectedIndex);
servers.set(servers.indexOf(selectedServer), newServer);
serverChangeListener.changed(servers);
}
}
}
Aggregations