public void onFailure(Throwable caught) {
TemplateResources templates=com.google.gwt.core.shared.GWT.create(TemplateResources.class);
process(templates.notice().getText());
}
private void process(String content){
GuideTip tip=new GuideTip(home.getShortcut());
String[] lines=content.split("\n");
for(String line:lines){
if(line.startsWith("<!--width=")){
tip.setWidth(Integer.valueOf(line.substring(10,line.indexOf("-->"))));
}else if(line.startsWith("<!--height=")){
tip.setHeight(Integer.valueOf(line.substring(11,line.indexOf("-->"))));
}
}
tip.setClosable(true);
tip.getToolTipConfig().setDismissDelay(0);
tip.setBodyHtml(content);
tip.setOffset(100, 0);
tip.show();
}
});
}