/** Populates this composite via reflection using the getProperty annotation. */
private void populatePanel(AbstractQuery selectedQuery) {
for (Method method : selectedQuery.getClass().getMethods()) {
if (method.isAnnotationPresent(GetProperty.class)) {
GetProperty getter = method.getAnnotation(GetProperty.class);
this.createLabel(getter.value());
String value = this.getValue(selectedQuery, method);
Text field = this.createTextField(value);
field.addModifyListener(this);
fieldMap.put(getter.value(), field);
}
}
}