propertyNameItem.setValueMap(new String[] { "id", "name", "version", "availability" });
propertyNameItem.clearValue();
buildExpressionValue();
} else if (resourceTypeId != null) {
GroupDefinitionExpressionBuilderGWTServiceAsync service;
service = GWTServiceLookup.getGroupDefinitionExpressionBuilderService();
if (MSG.view_dynagroup_exprBuilder_expressionType_trait().equals(expressionType)) {
service.getTraitPropertyNames(resourceTypeId.intValue(), new AsyncCallback<ArrayList<String>>() {
@Override
public void onSuccess(ArrayList<String> result) {
if (result != null) {
propertyNameItem.setValueMap(result.toArray(new String[result.size()]));
}
propertyNameItem.clearValue();
buildExpressionValue();
markForRedraw();
}
@Override
public void onFailure(Throwable caught) {
CoreGUI.getErrorHandler().handleError(MSG.view_dynagroup_exprBuilder_propLoadFailure(), caught);
}
});
} else if (MSG.view_dynagroup_exprBuilder_expressionType_pluginConfig().equals(expressionType)) {
service.getPluginConfigurationPropertyNames(resourceTypeId.intValue(),
new AsyncCallback<ArrayList<String>>() {
@Override
public void onSuccess(ArrayList<String> result) {
if (result != null) {
propertyNameItem.setValueMap(result.toArray(new String[result.size()]));
}
propertyNameItem.clearValue();
buildExpressionValue();
markForRedraw();
}
@Override
public void onFailure(Throwable caught) {
CoreGUI.getErrorHandler().handleError(MSG.view_dynagroup_exprBuilder_propLoadFailure(),
caught);
}
});
} else if (MSG.view_dynagroup_exprBuilder_expressionType_resourceConfig().equals(expressionType)) {
service.getResourceConfigurationPropertyNames(resourceTypeId.intValue(),
new AsyncCallback<ArrayList<String>>() {
@Override
public void onSuccess(ArrayList<String> result) {
if (result != null) {
propertyNameItem.setValueMap(result.toArray(new String[result.size()]));