use of com.intellij.javaee.serverInstances.ApplicationServersManager in project google-cloud-intellij by GoogleCloudPlatform.
the class JavaeeFrameworkSupportProviderTestCase method deleteApplicationServers.
public static void deleteApplicationServers() {
final ApplicationServersManager manager = ApplicationServersManager.getInstance();
final List<ApplicationServer> servers = manager.getApplicationServers();
final ApplicationServersManager.ApplicationServersManagerModifiableModel model = manager.createModifiableModel();
for (ApplicationServer server : servers) {
model.deleteApplicationServer(server);
}
ApplicationManager.getApplication().runWriteAction(model::commit);
}
Aggregations