/** * Conveniencemethod to load data into the editor. * <p> * Note that this is an async call, it will take some time before the data appears in the editor. * * @param sldi */ public void loadSld(final StyledLayerDescriptorInfo sldi) { manager.convertToRawSld(sldi, new AsyncCallback<RawSld>() { public void onSuccess(RawSld result) { loadSld(result.getXml(), result.getName(), result.getTitle()); } public void onFailure(Throwable caught) { loadSld(EXP_MSG.failedToParseSldObject(), sldi.getName(), sldi.getTitle()); } }); }