Package org.cloudfoundry.client.lib.domain

Examples of org.cloudfoundry.client.lib.domain.CloudRoute.inUse()


          List<?> routes = (List<?>) data;
          IStatus errorInUse = null;
          for (Object obj : routes) {
            if (obj instanceof CloudRoute) {
              CloudRoute rt = (CloudRoute) obj;
              if (rt.inUse()) {
                errorInUse = CloudFoundryPlugin.getStatus(
                    NLS.bind(Messages.ERROR_ROUTE_IN_USE, rt.getName()), IStatus.ERROR);
              }
            }
          }
View Full Code Here


                break;
              case DOMAIN:
                result = rt1.getDomain().getName().compareTo(rt2.getDomain().getName());
                break;
              case IN_USE:
                if (rt1.inUse() && !rt2.inUse()) {
                  result = -1;
                }
                else if (rt2.inUse() && !rt1.inUse()) {
                  result = 1;
                }
View Full Code Here

                break;
              case IN_USE:
                if (rt1.inUse() && !rt2.inUse()) {
                  result = -1;
                }
                else if (rt2.inUse() && !rt1.inUse()) {
                  result = 1;
                }
                break;
              }
View Full Code Here

      @Override
      public boolean select(Viewer viewer, Object items, Object item) {
        if (item instanceof CloudRoute) {
          CloudRoute route = (CloudRoute) item;
          return route.inUse() ? showInUseButton.getSelection()
              : (showRemovedRoutesButton.getSelection() && routesToRemove.contains(route))
                  || (!showRemovedRoutesButton.getSelection() && !routesToRemove.contains(route));
        }
        return false;
      }
View Full Code Here

    if (showInUseButton.getSelection()) {
      TableItem[] items = viewer.getTable().getItems();
      for (TableItem item : items) {
        CloudRoute route = (CloudRoute) item.getData();
        if (route.inUse()) {
          item.setForeground(DISABLED);
        }
      }
    }
  }
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.