WPaloPropertyServiceProvider.getInstance().getBooleanProperty("hideInfoButtonInView", false,
new AsyncCallback<Boolean>() {
private final void checkToolbar() {
if (toolbar != null) {
if (hideInfo) {
ToolItem it = toolbar.getItemByItemId(SHOW_INFO_BTN);
if (it != null) {
toolbar.remove(it);
toolbar.remove(toolbar.getItem(toolbar.getItemCount() - 1));
}
} else {
ToolItem it = toolbar.getItemByItemId(SHOW_INFO_BTN);
if (it == null) {
toolbar.add(new SeparatorToolItem());
toolbar.add(showInfoButton);
}
}