Search in sources :

Example 1 with DeploymentRuntime

use of com.intellij.remoteServer.runtime.deployment.DeploymentRuntime in project intellij-community by JetBrains.

the class LocalDeploymentImpl method setRemoteDeployment.

public void setRemoteDeployment(DeploymentImpl remoteDeployment) {
    myRemoteDeployment = remoteDeployment;
    String presentableName = null;
    if (remoteDeployment != null) {
        DeploymentRuntime deploymentRuntime = remoteDeployment.getRuntime();
        DeploymentTask<D> task = getDeploymentTask();
        if (deploymentRuntime != null) {
            presentableName = myServerInstance.getRuntimeDeploymentName(deploymentRuntime, task.getSource(), task.getConfiguration());
        }
    }
    setPresentableName(presentableName);
}
Also used : DeploymentRuntime(com.intellij.remoteServer.runtime.deployment.DeploymentRuntime)

Example 2 with DeploymentRuntime

use of com.intellij.remoteServer.runtime.deployment.DeploymentRuntime in project intellij-community by JetBrains.

the class ApplicationActionBase method getApplicationRuntime.

protected T getApplicationRuntime(DeploymentNode node) {
    Deployment deployment = getDeployment(node);
    if (deployment == null) {
        return null;
    }
    DeploymentRuntime deploymentRuntime = deployment.getRuntime();
    return ObjectUtils.tryCast(deploymentRuntime, getApplicationRuntimeClass());
}
Also used : DeploymentRuntime(com.intellij.remoteServer.runtime.deployment.DeploymentRuntime) Deployment(com.intellij.remoteServer.runtime.Deployment)

Aggregations

DeploymentRuntime (com.intellij.remoteServer.runtime.deployment.DeploymentRuntime)2 Deployment (com.intellij.remoteServer.runtime.Deployment)1