Examples of BeanPropertySource


Examples of com.bradmcevoy.property.BeanPropertySource

        List<PropertySource> list = new ArrayList<PropertySource>();
        CustomPropertySource customPropertySource = new CustomPropertySource();
        list.add( customPropertySource );
        MultiNamespaceCustomPropertySource mncps = new MultiNamespaceCustomPropertySource();
        list.add( mncps );
        BeanPropertySource beanPropertySource = new BeanPropertySource();
        list.add( beanPropertySource);
        return list;
    }
View Full Code Here

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

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

      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

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

        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

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

  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

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

  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
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.