// TODO: If appSource is not supplied, the link should go to the respective galleries for apps and plugins.
// However, the app galery requires knowing the start page tab id, and the worthwhile plugin gallery is only
// available to coordinators.
}
ComplexPanel actionsPanel = new FlowPanel();
actionsPanel.addStyleName(StaticResourceBundle.INSTANCE.coreCss().messageActionsArea());
// Show comments
InlineHyperlink showCommentsLink = new InlineHyperlink("Show Comments", permalinkUrl);
actionsPanel.add(showCommentsLink);
// Share
if (verbRenderer.getAllowShare() && msg.isShareable())
{
insertActionSeparator(actionsPanel, null);
Label shareLink = new InlineLabel("Share");
shareLink.addStyleName(StaticResourceBundle.INSTANCE.coreCss().linkedLabel());
actionsPanel.add(shareLink);
shareLink.addClickHandler(new ClickHandler()
{
public void onClick(final ClickEvent event)
{
Dialog.showCentered(new ShareMessageDialogContent(msg));
}
});
}
// Unstick
// Note: using the cheating way: always create the link, let CSS hide it unless the user is actually a
// coordinator
insertActionSeparator(actionsPanel, StaticResourceBundle.INSTANCE.coreCss().ownerOnlyInline());
Label link = new InlineLabel("Unstick");
link.addStyleName(StaticResourceBundle.INSTANCE.coreCss().linkedLabel());
link.addStyleName(StaticResourceBundle.INSTANCE.coreCss().ownerOnlyInline());
actionsPanel.add(link);
link.addClickHandler(new ClickHandler()
{
public void onClick(final ClickEvent event)
{