Search in sources :

Example 1 with AppEngineCloudType

use of com.intellij.appengine.cloud.AppEngineCloudType in project intellij-community by JetBrains.

the class UploadApplicationAction method actionPerformed.

public void actionPerformed(AnActionEvent e) {
    final Project project = e.getRequiredData(CommonDataKeys.PROJECT);
    RunnerAndConfigurationSettings configurationToRun = getConfigurationToRun(project);
    if (configurationToRun != null) {
        ProgramRunnerUtil.executeConfiguration(project, configurationToRun, DefaultRunExecutor.getRunExecutorInstance());
    } else {
        AppEngineCloudType serverType = AppEngineCloudType.getInstance();
        List<RemoteServer<AppEngineServerConfiguration>> servers = RemoteServersManager.getInstance().getServers(serverType);
        DeploymentConfigurationManager.getInstance(project).createAndRunConfiguration(serverType, ContainerUtil.getFirstItem(servers));
    }
}
Also used : Project(com.intellij.openapi.project.Project) AppEngineCloudType(com.intellij.appengine.cloud.AppEngineCloudType) RunnerAndConfigurationSettings(com.intellij.execution.RunnerAndConfigurationSettings) RemoteServer(com.intellij.remoteServer.configuration.RemoteServer)

Aggregations

AppEngineCloudType (com.intellij.appengine.cloud.AppEngineCloudType)1 RunnerAndConfigurationSettings (com.intellij.execution.RunnerAndConfigurationSettings)1 Project (com.intellij.openapi.project.Project)1 RemoteServer (com.intellij.remoteServer.configuration.RemoteServer)1