return form;
}
private TagEditorView createTagEditor() {
boolean readOnly = !this.canTag;
TagEditorView tagEditor = new TagEditorView(destination.getTags(), readOnly, new TagsChangedCallback() {
@Override
public void tagsChanged(HashSet<Tag> tags) {
GWTServiceLookup.getTagService().updateBundleDestinationTags(destination.getId(), tags,
new AsyncCallback<Void>() {
@Override
public void onFailure(Throwable caught) {
getErrorHandler().handleError(MSG.view_bundle_dest_tagUpdateFailure(), caught);
}
@Override
public void onSuccess(Void result) {
getMessageCenter().notify(
new Message(MSG.view_bundle_dest_tagUpdateSuccessful(), Message.Severity.Info));
}
});
}
});
tagEditor.setAutoHeight();
tagEditor.setExtraSpace(10);
return tagEditor;
}