Search in sources :

Example 1 with ApplicationServersManager

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);
}
Also used : ApplicationServersManager(com.intellij.javaee.serverInstances.ApplicationServersManager) ApplicationServer(com.intellij.javaee.appServerIntegrations.ApplicationServer)

Aggregations

ApplicationServer (com.intellij.javaee.appServerIntegrations.ApplicationServer)1 ApplicationServersManager (com.intellij.javaee.serverInstances.ApplicationServersManager)1