IObserveInfo parent,
boolean addSelf) throws Exception {
List<BeanPropertyObserveInfo> properties = Lists.newArrayList();
//
if (addSelf) {
SimpleObservePresentation selfPresentation =
new SimpleObservePresentation("<Self Object>",
"",
TypeImageProvider.SELF_OBJECT_PROPERTY_IMAGE);
properties.add(new BeanPropertyObserveInfo(null,
parent,
StringReferenceProvider.EMPTY,
selfPresentation,
IObserveDecorator.BOLD));
}
//
for (String propertyName : getStringProperties(beanClass)) {
Class<?> propertyClass = m_classes.get(beanClass).get(propertyName);
if (propertyClass == null) {
propertyClass = Object.class;
}
IReferenceProvider referenceProvider =
new StringReferenceProvider("\"" + propertyName + "\"");
IObservePresentation presentation =
new SimpleObservePresentation(propertyName,
propertyName,
TypeImageProvider.getImage(propertyClass));
IObserveDecorator decorator = IObserveDecorator.DEFAULT;
properties.add(new BeanPropertyObserveInfo(propertyClass,
parent,