headerToolBar.add(hButton);
if (displayVersionSelector) {
headerToolBar.add(restoreButton);
}
GWTJahiaToolbarItem gwtJahiaToolbarItem = new GWTJahiaToolbarItem();
PublishActionItem actionItem = new PublishActionItem();
gwtJahiaToolbarItem.setActionItem(actionItem);
gwtJahiaToolbarItem.setTitle(Messages.get("label.publish"));
gwtJahiaToolbarItem.setLayout(Constants.LAYOUT_BUTTON_LABEL);
gwtJahiaToolbarItem.setDisplayTitle(true);
gwtJahiaToolbarItem.setIcon("publish");
actionItem.init(gwtJahiaToolbarItem, linker);
actionItem.handleNewLinkerSelection();
headerToolBar.add(actionItem.getTextToolItem());
gwtJahiaToolbarItem = new GWTJahiaToolbarItem();
actionItem = new PublishAllActionItem();
gwtJahiaToolbarItem.setActionItem(actionItem);
gwtJahiaToolbarItem.setTitle(Messages.get("label.publishall"));
gwtJahiaToolbarItem.setLayout(Constants.LAYOUT_BUTTON_LABEL);
gwtJahiaToolbarItem.setDisplayTitle(true);
gwtJahiaToolbarItem.setIcon("publishAll");
actionItem.init(gwtJahiaToolbarItem, linker);
actionItem.handleNewLinkerSelection();
headerToolBar.add(actionItem.getTextToolItem());
setTopComponent(headerToolBar);