// No-need to build the UI. UI binder does it all.
// Only need to populate default values.
final Url resourceUrl = new Url(tabDescription.getUrl());
final String applicationUrl = resourceUrl.getApplicationUrl();
appUrl.setValue(applicationUrl);
final LocalStorage storage = WindowExt.getHostWindow().getLocalStorage();
String previousManifestValue = storage.getStringItem(applicationUrl);
symbolManifestUrl.setValue(previousManifestValue);
// And wire up the save button.
ClickEvent.addClickListener(saveButton, saveButton, new ClickListener() {
public void onClick(ClickEvent event) {
if (null == symbolManifestUrl.getValue()) {
return;
}
storage.setStringItem(applicationUrl, symbolManifestUrl.getValue());
// Register the SSController.
SymbolServerService.registerSymbolServerController(resourceUrl,
new Url(symbolManifestUrl.getValue()));