in src/main/java/idea/plugin/psiviewer/util/IntrospectionUtil.java [36:61]
public static Object getValue(Object target, PropertyDescriptor property)
{
Method getter = property.getReadMethod();
String name = property.getDisplayName();
Object value;
try
{
Object args[] = {};
getter.setAccessible(true);
value = getter.invoke(target, args);
}
catch (InvocationTargetException ex)
{
LOG.debug("Exception getting property " + name + " on " + target.toString());
LOG.debug(ex.getTargetException());
value = "<exception=" + ex.getMessage() + ">";
}
catch (Exception ex)
{
LOG.debug("Exception getting property " + name + " on " + target.toString());
LOG.debug(ex);
value = "<exception=" + ex.getMessage() + ">";
}
return value;
}