public PropertySourceTableView(Class<?> beanType) { this(beanType.getName()); try { this.exemplar = new BeanPropertySource(null, beanType); } catch (IntrospectionException e) { Activator.getLogger() .warning("Failed to create BeanPropertySource for " + beanType.getName() + ". " + e, e); } }
public IPropertySource getPropertySource() { if (propertySource == null) { try { propertySource = createPropertySource(); } catch (IntrospectionException e) { Activator.getLogger().warning("Failed to create PropertySource for " + this + ". " + e, e); } } return propertySource; }
@Override public IPropertySource getPropertySource(Object object) { // avoid infinite recursion! if (object != null && object != this) { // System.out.println("====== warning getPropertySource() asked for: " + object + " of class: // "+ object.getClass()); return null; } if (object == null) { return null; } if (propertySource == null) { try { propertySource = createPropertySource(); } catch (Exception e) { Activator.getLogger().warning(e); } } return propertySource; }