// ---
VerticalPanel outputPanel = new VerticalPanel();
ComboBox comboBox = new ComboBox();
comboBox.addValueChangeHandler(new ValueChangeHandler<String>() {
@Override
public void onValueChange(ValueChangeEvent<String> event) {
presenter.setOperation(event.getValue());
}
});
List<String> options = new ArrayList<String>();
options.add(ModelDescriptionConstants.READ_RESOURCE_OPERATION);
options.add(ModelDescriptionConstants.READ_RESOURCE_DESCRIPTION_OPERATION);
options.add(ModelDescriptionConstants.READ_OPERATION_NAMES_OPERATION);
options.add(ModelDescriptionConstants.READ_RESOURCE_METRICS);
options.add(ModelDescriptionConstants.READ_CHILDREN_TYPES_OPERATION);
options.add(ModelDescriptionConstants.READ_CHILDREN_NAMES_OPERATION);
comboBox.setValues(options);
comboBox.setItemSelected(0,true);
outputPanel.add(comboBox.asWidget());
requestArea = new TextArea();
requestArea.setCharacterWidth(60);
requestArea.setVisibleLines(10);