Search in sources :

Example 1 with ModuleDeploymentSourceImpl

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

the class CloudRunConfigurationUtil method createRunConfiguration.

public static <SC extends ServerConfiguration, DC extends DeploymentConfiguration> DeployToServerRunConfiguration<SC, DC> createRunConfiguration(RemoteServer<SC> account, Module module, DC deploymentConfiguration) {
    final ModulePointer modulePointer = ModulePointerManager.getInstance(module.getProject()).create(module);
    DeploymentSource deploymentSource = new ModuleDeploymentSourceImpl(modulePointer);
    return createRunConfiguration(account, module, deploymentSource, deploymentConfiguration);
}
Also used : ModulePointer(com.intellij.openapi.module.ModulePointer) ModuleDeploymentSourceImpl(com.intellij.remoteServer.impl.configuration.deployment.ModuleDeploymentSourceImpl) DeploymentSource(com.intellij.remoteServer.configuration.deployment.DeploymentSource)

Example 2 with ModuleDeploymentSourceImpl

use of com.intellij.remoteServer.impl.configuration.deployment.ModuleDeploymentSourceImpl 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)2 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 ModuleDeploymentSource (com.intellij.remoteServer.configuration.deployment.ModuleDeploymentSource)1 ArrayList (java.util.ArrayList)1