Package org.fusesource.ide.commons.tree

Examples of org.fusesource.ide.commons.tree.HasOwner


      @Override
      public void run() {
        Object first = Selections.getFirstSelection(getTableView().getViewer());
        if (first != null && owner instanceof HasRefreshableUI) {
          if (first instanceof HasOwner) {
            HasOwner ho = (HasOwner) first;
            first = ho.getOwner();
          }
          HasRefreshableUI hr = (HasRefreshableUI) owner;
          Selections.setSingleSelection(hr.getRefreshableUI(), first);
        }
      }
View Full Code Here


    if (element instanceof ImageProvider) {
      ImageProvider ip = (ImageProvider) element;
      return ip.getImage();
    }
    if (element instanceof HasOwner) {
      HasOwner ho = (HasOwner) element;
      Object bean = ho.getOwner();
      if (bean instanceof ImageProvider) {
        ImageProvider ip = (ImageProvider) bean;
        return ip.getImage();
      }
    }
View Full Code Here

  public static ContainerNode toContainerNode(Object object) {
    if (object instanceof ContainerNode) {
      return (ContainerNode) object;
    }
    if (object instanceof HasOwner) {
      HasOwner ho = (HasOwner) object;
      return toContainerNode(ho.getOwner());
    }
    return null;
  }
View Full Code Here

    }
    if (input != null && answer == null) {
      answer = (AbstractNode) Platform.getAdapterManager().getAdapter(input, AbstractNode.class);
    }
    if (answer == null && input instanceof HasOwner) {
      HasOwner ho = (HasOwner) input;
      answer = toAbstractNode(ho.getOwner());
    }
    return answer;
  }
View Full Code Here

  public static ContainerNode toContainerNode(Object object) {
    if (object instanceof ContainerNode) {
      return (ContainerNode) object;
    }
    if (object instanceof HasOwner) {
      HasOwner ho = (HasOwner) object;
      return toContainerNode(ho.getOwner());
    }
    return null;
  }
View Full Code Here

  public static VersionNode toVersionNode(Object object) {
    if (object instanceof VersionNode) {
      return (VersionNode) object;
    }
    if (object instanceof HasOwner) {
      HasOwner ho = (HasOwner) object;
      return toVersionNode(ho.getOwner());
    }
    return null;
  }
View Full Code Here

TOP

Related Classes of org.fusesource.ide.commons.tree.HasOwner

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.