Package org.cloudfoundry.ide.eclipse.server.ui.internal.actions

Examples of org.cloudfoundry.ide.eclipse.server.ui.internal.actions.ModifyServicesForApplicationAction


                  boolean isBoundToServiceAfter = curr.getBoundToServiceAfter();
                  if (isBoundToServiceAfter != curr.getBoundToServiceBefore()){
                    CloudApplication cloudApp = applicationsToProcess.get(i).getCloudApplication();
                    CloudFoundryApplicationModule module = server.getExistingCloudModule(cloudApp.getName());
                    if(isBoundToServiceAfter){             
                      ModifyServicesForApplicationAction bindService =
                          new AddServicesToApplicationAction(structuredSelection,
                              module,
                              server.getBehaviour(),
                              editorPage);
                      bindService.run();           
                    }
                    else {
                      ModifyServicesForApplicationAction unbindService =
                          new RemoveServicesFromApplicationAction(structuredSelection,
                              module,
                              server.getBehaviour(),
                              editorPage);
                      unbindService.run();
                    }
                  }
                }                 
                           
              }
View Full Code Here

TOP

Related Classes of org.cloudfoundry.ide.eclipse.server.ui.internal.actions.ModifyServicesForApplicationAction

Copyright © 2018 www.massapicom. 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.