// Add the external tools actions
// If only one service is selected, check if there are external
// tools to launch for that service
List<CloudService> services = ModifyServicesForApplicationAction.getServices(selection);
CloudService selectedService = null;
// Only show external tools launch actions for ONE selection
if (services != null && services.size() == 1) {
selectedService = services.get(0);
}
if (selectedService != null) {
// See if there is an existing tunnel that is open
CaldecottTunnelDescriptor descriptor = CloudFoundryPlugin.getCaldecottTunnelCache().getDescriptor(
cloudServer, selectedService.getName());
IAction dataToolsAction = DataToolsTunnelAction.getAction(editorPage, selectedService, descriptor,
cloudServer);
// Add connection to Eclipse data tools, if one exists for the given