Search in sources :

Example 6 with DeploymentSource

use of com.intellij.remoteServer.configuration.deployment.DeploymentSource in project intellij-community by JetBrains.

the class CloudModuleDeploymentRuntimeProviderBase method getDeploymentSources.

@Override
public Collection<DeploymentSource> getDeploymentSources(Project project) {
    List<DeploymentSource> result = new ArrayList<>();
    ModulePointerManager pointerManager = ModulePointerManager.getInstance(project);
    for (Module module : ModuleManager.getInstance(project).getModules()) {
        result.add(new ModuleDeploymentSourceImpl(pointerManager.create(module)));
    }
    return result;
}
Also used : ArrayList(java.util.ArrayList) ModuleDeploymentSourceImpl(com.intellij.remoteServer.impl.configuration.deployment.ModuleDeploymentSourceImpl) ModulePointerManager(com.intellij.openapi.module.ModulePointerManager) DeploymentSource(com.intellij.remoteServer.configuration.deployment.DeploymentSource) ModuleDeploymentSource(com.intellij.remoteServer.configuration.deployment.ModuleDeploymentSource) Module(com.intellij.openapi.module.Module)

Aggregations

DeploymentSource (com.intellij.remoteServer.configuration.deployment.DeploymentSource)6 ModuleDeploymentSourceImpl (com.intellij.remoteServer.impl.configuration.deployment.ModuleDeploymentSourceImpl)2 Module (com.intellij.openapi.module.Module)1 ModulePointer (com.intellij.openapi.module.ModulePointer)1 ModulePointerManager (com.intellij.openapi.module.ModulePointerManager)1 CancellableRunnable (com.intellij.openapi.vcs.impl.CancellableRunnable)1 ModuleDeploymentSource (com.intellij.remoteServer.configuration.deployment.ModuleDeploymentSource)1 File (java.io.File)1 ArrayList (java.util.ArrayList)1 Element (org.jdom.Element)1 Test (org.junit.Test)1