Package org.fusesource.ide.commons.ui.propsrc

Examples of org.fusesource.ide.commons.ui.propsrc.BeanPropertySource


  public static final Joiner spaceJoiner = Joiner.on(" ");
  private final Container container;

  public static ContainerViewBean toContainerViewBean(Object element) {
    if (element instanceof BeanPropertySource) {
      BeanPropertySource source = (BeanPropertySource) element;
      return toContainerViewBean(source.getBean());
    }
    if (element instanceof ContainerViewBean) {
      return (ContainerViewBean) element;
    }
    if (element instanceof Container) {
View Full Code Here


      IPropertySourceProvider provider = (IPropertySourceProvider) object;
      answer = provider.getPropertySource(object);
    }
    if (answer == null && object != null) {
      try {
        return new BeanPropertySource(object);
      } catch (IntrospectionException e) {
        Activator.getLogger().warning("Failed to create BeanPropertySource on " + object + ". " + e, e);
      }
    }
    return answer;
View Full Code Here

        ImageProvider ip = (ImageProvider) bean;
        return ip.getImage();
      }
    }
    if (element instanceof BeanPropertySource) {
      BeanPropertySource bps = (BeanPropertySource) element;
      Object bean = bps.getBean();
      if (bean instanceof ImageProvider) {
        ImageProvider ip = (ImageProvider) bean;
        return ip.getImage();
      }
    }
View Full Code Here

  protected IPropertySource createPropertySource() throws IntrospectionException {
    Object localPropertyBean = getPropertyBean();
    if (localPropertyBean == null) {
      return null;
    }
    BeanPropertySource answer = new BeanPropertySource(localPropertyBean);
    answer.setOwner(this);
    return answer;
  }
View Full Code Here

  private final ContainerDTO container;

  public static ContainerViewBean toContainerViewBean(Object element) {
    if (element instanceof BeanPropertySource) {
      BeanPropertySource source = (BeanPropertySource) element;
      return toContainerViewBean(source.getBean());
    }
    if (element instanceof ContainerViewBean) {
      return (ContainerViewBean) element;
    }
    if (element instanceof ContainerDTO) {
View Full Code Here

TOP

Related Classes of org.fusesource.ide.commons.ui.propsrc.BeanPropertySource

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.