Package org.cloudfoundry.ide.eclipse.server.core.internal.client

Examples of org.cloudfoundry.ide.eclipse.server.core.internal.client.DeploymentInfoWorkingCopy.save()


      runnable = new IRunnableWithProgress() {
        public void run(IProgressMonitor monitor) {
          try {
            DeploymentInfoWorkingCopy wc = applicationModule.resolveDeploymentInfoWorkingCopy(monitor);
            wc.setUris(page.getURLs());
            wc.save();
          }
          catch (CoreException e) {
            result[0] = e.getStatus();
          }
        }
View Full Code Here


    if (project != null) {

      // Get the descriptor from the existing application module
      DeploymentInfoWorkingCopy workingCopy = appModule.resolveDeploymentInfoWorkingCopy(monitor);
      workingCopy.setUris(uris);
      workingCopy.save();
      IServer server = cloudServer.getServer();

      final IModule[] modules = ServerUtil.getModules(project);

      if (modules != null && modules.length == 1) {
View Full Code Here

        }

        // Update the bound services mapping in the application
        if (!updatedServices.isEmpty() && deploymentInfo != null) {
          deploymentInfo.setServices(updatedServices);
          deploymentInfo.save();
        }
      }
      servicesViewer.setInput(updatedServices.toArray(new CloudService[updatedServices.size()]));

      servicesDropListener.setModule(appModule);
View Full Code Here

      List<CloudService> boundServices = new ArrayList<CloudService>();
      for (String serName : updatedServices) {
        boundServices.add(new LocalCloudService(serName));
      }
      workingCopy.setServices(boundServices);
      workingCopy.save();

      if (appModule.getApplication() != null) {
        // update services right away, if app is already deployed
        return new ModifyEditorOperation() {
          protected void performOperation(IProgressMonitor monitor) throws CoreException {
View Full Code Here

    if (repModule != null) {
      ApplicationDeploymentInfo republishDeploymentInfo = repModule.getDeploymentInfo();
      if (republishDeploymentInfo != null) {
        DeploymentInfoWorkingCopy copy = appModule.resolveDeploymentInfoWorkingCopy(monitor);
        copy.setInfo(republishDeploymentInfo);
        copy.save();
      }
    }

    // Validate the existing deployment info. Do NOT save or make changes to
    // the deployment info prior to this stage
View Full Code Here

      if (url != null) {
        copy.setUris(Arrays.asList(url.getUrl()));
      }
    }

    copy.save();

    ApplicationAction mode = deployStopped ? ApplicationAction.STOP : ApplicationAction.START;

    return new DeploymentConfiguration(mode);
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.